From: Jens Axboe Date: Wed, 28 Feb 2007 10:13:49 +0000 (+0100) Subject: Don't do rate checks, if no ratemin has been specified. X-Git-Tag: fio-1.13~23 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=780bf1a192f494dcbacb9c1fcc75f6c440a7051e Don't do rate checks, if no ratemin has been specified. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index b095527e..9a3cc948 100644 --- a/fio.c +++ b/fio.c @@ -100,6 +100,12 @@ static int check_min_rate(struct thread_data *td, struct timeval *now) unsigned long spent; unsigned long rate; + /* + * No minimum rate set, always ok + */ + if (!td->ratemin) + return 0; + /* * allow a 2 second settle period in the beginning */