summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/nbench/nbench.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c
index f14da8cd15..b55998e43f 100644
--- a/source4/torture/nbench/nbench.c
+++ b/source4/torture/nbench/nbench.c
@@ -88,7 +88,11 @@ again:
if (i > 0 && isdigit(params[0][0])) {
double targett = strtod(params[0], NULL);
- nbio_time_delay(targett);
+ if (target_rate != 0) {
+ nbio_target_rate(target_rate);
+ } else {
+ nbio_time_delay(targett);
+ }
params++;
i--;
} else if (target_rate != 0) {