X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=eta.c;h=ea1781f3b792147636210f38714abb089870a2da;hb=e8ab121c88d61624c0925b54013cd57c2dc171f2;hp=d1c9449f47173451895f9ce71167aa23276dc370;hpb=60c52212520b905a1740d3c8815c34cc48471c5c;p=fio.git diff --git a/eta.c b/eta.c index d1c9449f..ea1781f3 100644 --- a/eta.c +++ b/eta.c @@ -331,7 +331,7 @@ static void calc_rate(int unified_rw_rep, unsigned long mtime, else this_rate = 0; - if (unified_rw_rep) { + if (unified_rw_rep == UNIFIED_MIXED) { rate[i] = 0; rate[0] += this_rate; } else @@ -356,7 +356,7 @@ static void calc_iops(int unified_rw_rep, unsigned long mtime, else this_iops = 0; - if (unified_rw_rep) { + if (unified_rw_rep == UNIFIED_MIXED) { iops[i] = 0; iops[0] += this_iops; } else @@ -507,8 +507,9 @@ bool calc_thread_status(struct jobs_eta *je, int force) calc_rate(unified_rw_rep, rate_time, io_bytes, rate_io_bytes, je->rate); memcpy(&rate_prev_time, &now, sizeof(now)); + regrow_agg_logs(); for_each_rw_ddir(ddir) { - add_agg_sample(sample_val(je->rate[ddir]), ddir, 0, 0); + add_agg_sample(sample_val(je->rate[ddir]), ddir, 0); } }