stat: fix reversed check for ramp time
authorJens Axboe <axboe@fb.com>
Tue, 7 Jun 2016 03:23:53 +0000 (21:23 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 7 Jun 2016 03:23:53 +0000 (21:23 -0600)
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 <axboe@fb.com>
stat.c

diff --git a/stat.c b/stat.c
index 704947f548950a3076651b54087ff6653b73a198..a8ccd9ab2133bc0a67f1a38de6157f8513f384f2 100644 (file)
--- 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;