summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-14 01:04:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:22 -0500
commit7df266a4f80dd00f16459855058632f6bb10ae3f (patch)
tree4635ceb85913711806d50de1bb42651da69ae7ec /source4/torture
parentaf0ba915f5b8b756747b095680af7aff510b5bf5 (diff)
downloadsamba-7df266a4f80dd00f16459855058632f6bb10ae3f.tar.gz
samba-7df266a4f80dd00f16459855058632f6bb10ae3f.tar.bz2
samba-7df266a4f80dd00f16459855058632f6bb10ae3f.zip
r22835: it's useful to see how much time is remaining in this test (so we can
tell if failures are due to the cleanup code) (This used to be commit a4ff1927d452dce93403c456ea9ba3a6b4332f5c)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/openbench.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c
index 9867a407ec..a65ef0eff7 100644
--- a/source4/torture/raw/openbench.c
+++ b/source4/torture/raw/openbench.c
@@ -207,11 +207,12 @@ BOOL torture_bench_open(struct torture_context *torture)
goto failed;
}
- if (loops++ % 1000 != 0) continue;
+ if (loops++ % 10 != 0) continue;
if (torture_setting_bool(torture, "progress", true)) {
- printf("%.2f ops/second (%d retries)\r",
- total/timeval_elapsed(&tv), open_retries);
+ printf("%.2f ops/second (%d retries) (%u remaining)\r",
+ total/timeval_elapsed(&tv), open_retries,
+ (unsigned)(timelimit - timeval_elapsed(&tv)));
fflush(stdout);
}
}