Don't do rate checks, if no ratemin has been specified.
authorJens Axboe <jens.axboe@oracle.com>
Wed, 28 Feb 2007 10:13:49 +0000 (11:13 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 Feb 2007 10:13:49 +0000 (11:13 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c

diff --git a/fio.c b/fio.c
index b095527..9a3cc94 100644 (file)
--- 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
         */