From e4413f05e5fe1ff50e5fa751b818b1f539a33120 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 30 Jan 2012 13:34:04 -0800 Subject: [PATCH] fix early termination of runs caused by ramp_time > runtime If ramp_time was longer than the runtime, then the run terminated immediately after the ramp_time was exceeded. In order to avoid this, teach runtime_exceeded about ramp_time. Signed-off-by: Steven Noonan Signed-off-by: Jens Axboe --- fio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fio.c b/fio.c index 77e5572b..7aa55a8f 100644 --- a/fio.c +++ b/fio.c @@ -343,6 +343,8 @@ static int check_min_rate(struct thread_data *td, struct timeval *now, static inline int runtime_exceeded(struct thread_data *td, struct timeval *t) { + if (in_ramp_time(td)) + return 0; if (!td->o.timeout) return 0; if (mtime_since(&td->epoch, t) >= td->o.timeout * 1000) -- 2.25.1