[PATCH] Cleanup some output code
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/eta.c b/eta.c
index 5ea4294..25eaf1a 100644
--- a/eta.c
+++ b/eta.c
@@ -245,12 +245,12 @@
if (!nr_running && !nr_pending)
return;
- printf("Threads running: %d", nr_running);
+ printf("Threads: %d", nr_running);
if (m_rate || t_rate)
printf(", commitrate %d/%dKiB/sec", t_rate, m_rate);
if (eta_sec != INT_MAX && nr_running) {
perc *= 100.0;
- printf(": [%s] [%3.2f%% done] [%6u/%6u kb/s] [eta %s]", run_str, perc, r_rate, w_rate, eta_str);
+ printf(": [%s] [%3.1f%% done] [%6u/%6u kb/s] [eta %s]", run_str, perc, r_rate, w_rate, eta_str);
}
printf("\r");
fflush(stdout);