1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

make the warmup and execute phases clearer

(This used to be commit d49e4407e59a25c8e887b552ed2a58de7a16b6d9)
This commit is contained in:
Andrew Tridgell 2004-03-10 05:05:56 +00:00
parent 5e31a56e72
commit c66a2c1438

View File

@ -73,16 +73,25 @@ void nb_alarm(void)
t = end_timer();
printf("%4d %8d %.2f MB/sec time %.0f sec \r",
num_clients, lines/nprocs,
1.0e-6 * nbio_total() / t,
t - warmup);
if (warmup) {
printf("%4d %8d %.2f MB/sec warmup %.0f sec \r",
num_clients, lines/nprocs,
1.0e-6 * nbio_total() / t,
t);
} else {
printf("%4d %8d %.2f MB/sec execute %.0f sec \r",
num_clients, lines/nprocs,
1.0e-6 * nbio_total() / t,
t);
}
if (warmup && t >= warmup) {
start_timer();
warmup = 0;
}
fflush(stdout);
signal(SIGALRM, nb_alarm);
alarm(1);
}