[PATCH] fio: rate granularity from 250msec to 100msec
authorJens Axboe <axboe@suse.de>
Fri, 14 Oct 2005 08:39:05 +0000 (10:39 +0200)
committerJens Axboe <axboe@suse.de>
Fri, 14 Oct 2005 08:39:05 +0000 (10:39 +0200)
fio.c

diff --git a/fio.c b/fio.c
index e4cd6ed5d1c845b5f6d23330dc7abe3c6eec5279..41def265352f08cdfe6cddc4f282363680913be5 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -321,7 +321,7 @@ void rate_throttle(struct thread_data *td, unsigned long time_spent)
                unsigned long s = td->rate_usec_cycle - time_spent;
 
                td->rate_pending_usleep += s;
-               if (td->rate_pending_usleep >= 250000) {
+               if (td->rate_pending_usleep >= 100000) {
                        usec_sleep(td->rate_pending_usleep);
                        td->rate_pending_usleep = 0;
                }