1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00

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 commit is contained in:
Andrew Tridgell
2007-05-14 01:04:35 +00:00
committed by Gerald (Jerry) Carter
parent b505c176a8
commit a4ff1927d4

View File

@@ -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);
}
}