summaryrefslogtreecommitdiff
path: root/source4/torture/raw/lockbench.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw/lockbench.c')
-rw-r--r--source4/torture/raw/lockbench.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c
index 4dbefd5d9b..3d02e0f5c4 100644
--- a/source4/torture/raw/lockbench.c
+++ b/source4/torture/raw/lockbench.c
@@ -171,8 +171,11 @@ BOOL torture_bench_lock(struct torture_context *torture)
for (i=0;i<nprocs;i++) {
total += state[i].count;
}
- printf("%.2f ops/second\r", total/timeval_elapsed(&tv));
- fflush(stdout);
+
+ if (torture_setting_bool(torture, "progress", true)) {
+ printf("%.2f ops/second\r", total/timeval_elapsed(&tv));
+ fflush(stdout);
+ }
}
printf("%.2f ops/second\n", total/timeval_elapsed(&tv));