mirror of
https://github.com/samba-team/samba.git
synced 2025-12-06 16:23:49 +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;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loops++ % 1000 != 0) continue;
|
if (loops++ % 10 != 0) continue;
|
||||||
|
|
||||||
if (torture_setting_bool(torture, "progress", true)) {
|
if (torture_setting_bool(torture, "progress", true)) {
|
||||||
printf("%.2f ops/second (%d retries)\r",
|
printf("%.2f ops/second (%d retries) (%u remaining)\r",
|
||||||
total/timeval_elapsed(&tv), open_retries);
|
total/timeval_elapsed(&tv), open_retries,
|
||||||
|
(unsigned)(timelimit - timeval_elapsed(&tv)));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user