Merge branch 'dev' of https://github.com/smartxworks/fio
[fio.git] / time.c
diff --git a/time.c b/time.c
index 28c20717406029bc584e583810e24416d0cf2457..1999969955b2828d6a9d38b425147b5ac3b5babf 100644 (file)
--- a/time.c
+++ b/time.c
@@ -105,7 +105,7 @@ static bool parent_update_ramp(struct thread_data *td)
                return false;
 
        reset_all_stats(parent);
-       parent->ramp_time_over = 1;
+       parent->ramp_time_over = true;
        td_set_runstate(parent, TD_RAMP);
        return true;
 }
@@ -116,8 +116,9 @@ bool ramp_time_over(struct thread_data *td)
                return true;
 
        if (utime_since_now(&td->epoch) >= td->o.ramp_time) {
-               td->ramp_time_over = 1;
+               td->ramp_time_over = true;
                reset_all_stats(td);
+               reset_io_stats(td);
                td_set_runstate(td, TD_RAMP);
 
                /*