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:
committed by
Gerald (Jerry) Carter
parent
b505c176a8
commit
a4ff1927d4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user