From: Jens Axboe Date: Tue, 7 Jun 2016 03:23:53 +0000 (-0600) Subject: stat: fix reversed check for ramp time X-Git-Tag: fio-2.12~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6a89b401289ef823c51760c71018b43d0c17532b;p=fio.git stat: fix reversed check for ramp time A previous commit flipped the return value of checking for ramp time or not. Fix it up. Fixes: 356014ff351c ("Fix ramp time breakage") Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 704947f5..a8ccd9ab 100644 --- a/stat.c +++ b/stat.c @@ -2387,7 +2387,7 @@ int calc_log_samples(void) fio_gettime(&now, NULL); for_each_td(td, i) { - if (!in_ramp_time(td) || + if (in_ramp_time(td) || !(td->runstate == TD_RUNNING || td->runstate == TD_VERIFYING)) { next = min(td->o.iops_avg_time, td->o.bw_avg_time); continue;