Support for setting rated based on IOPS
[fio.git] / time.c
diff --git a/time.c b/time.c
index 45a415c..c5b67ff 100644 (file)
--- a/time.c
+++ b/time.c
@@ -114,7 +114,7 @@ void rate_throttle(struct thread_data *td, unsigned long time_spent,
        unsigned long usec_cycle;
        unsigned int bs;
 
-       if (!td->rate)
+       if (!td->rate && !td->rate_iops)
                return;
 
        if (td_rw(td))