X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=76994d90b9c59b3ae059dbae99d12f7e77ce1c6d;hp=9307667054b4c16eb6e760e4a0f5197599c745fd;hb=8a78a3b7d31b7e7346115e45235108a7ffb7ec85;hpb=0e1c454a80bc9f1516ebc910ceb257bc6733e6b4 diff --git a/backend.c b/backend.c index 93076670..76994d90 100644 --- a/backend.c +++ b/backend.c @@ -179,7 +179,7 @@ static int __check_min_rate(struct thread_data *td, struct timeval *now, if (spent < td->o.ratecycle) return 0; - if (td->o.rate[ddir]) { + if (td->o.rate[ddir] || td->o.ratemin[ddir]) { /* * check bandwidth specified rate */ @@ -220,6 +220,7 @@ static int __check_min_rate(struct thread_data *td, struct timeval *now, log_err("%s: min iops rate %u not met," " got %lu\n", td->o.name, rate_iops_min, rate); + return 1; } } }