projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3307d65
)
[PATCH] Only print eta when we have nr_running > 0
author
Jens Axboe
<axboe@suse.de>
Fri, 28 Jul 2006 13:05:34 +0000
(15:05 +0200)
committer
Jens Axboe
<axboe@suse.de>
Fri, 28 Jul 2006 13:05:34 +0000
(15:05 +0200)
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index 3656694b291cf7954abac48815cdeeeeeb801ca4..11799e0db8e6c52ad07bd6b273fa05895d208261 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-1679,7
+1679,7
@@
static void print_thread_status(void)
printf("Threads running: %d", nr_running);
if (m_rate || t_rate)
printf(", commitrate %d/%dKiB/sec", t_rate, m_rate);
- if (eta_sec != INT_MAX) {
+ if (eta_sec != INT_MAX
&& nr_running
) {
perc *= 100.0;
printf(": [%s] [%3.2f%% done] [eta %s]", run_str, perc,eta_str);
}