From 6a89b401289ef823c51760c71018b43d0c17532b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 6 Jun 2016 21:23:53 -0600 Subject: [PATCH] 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 --- stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1