From 49f3f91494f5297f0764ab4ff5113286e97c6a21 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 13 Sep 2017 09:07:25 -0600 Subject: [PATCH] time: use bool for ramp time Signed-off-by: Jens Axboe --- fio.h | 2 +- time.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fio.h b/fio.h index da950ef8..8814d84e 100644 --- a/fio.h +++ b/fio.h @@ -335,7 +335,7 @@ struct thread_data { struct timespec terminate_time; unsigned int ts_cache_nr; unsigned int ts_cache_mask; - unsigned int ramp_time_over; + bool ramp_time_over; /* * Time since last latency_window was started diff --git a/time.c b/time.c index 28c20717..c8876829 100644 --- 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,7 +116,7 @@ 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); td_set_runstate(td, TD_RAMP); -- 2.25.1