diff options
Diffstat (limited to 'source4/torture/nbench')
-rw-r--r-- | source4/torture/nbench/nbench.c | 6 |
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) { |