From 7df266a4f80dd00f16459855058632f6bb10ae3f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 May 2007 01:04:35 +0000 Subject: 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) --- source4/torture/raw/openbench.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source4/torture/raw') 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); } } -- cgit