From d56cbab065c01e1a177bc1b8d85a8f5d78df1548 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Jan 2007 19:24:55 +0100 Subject: [PATCH] [PATCH] Cleanup some output code Signed-off-by: Jens Axboe --- eta.c | 4 ++-- init.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eta.c b/eta.c index 5ea42940..25eaf1a3 100644 --- a/eta.c +++ b/eta.c @@ -245,12 +245,12 @@ void print_thread_status(void) 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); diff --git a/init.c b/init.c index 374d10ad..611aa9c0 100644 --- a/init.c +++ b/init.c @@ -756,7 +756,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num) c3 = to_kmg(td->min_bs[DDIR_WRITE]); c4 = to_kmg(td->max_bs[DDIR_WRITE]); - fprintf(f_out, "%s: (g=%d): rw=%s, odir=%u, bs=%s-%s/%s-%s, rate=%u, ioengine=%s, iodepth=%u\n", td->name, td->groupid, ddir_str[ddir], td->odirect, c1, c2, c3, c4, td->rate, td->io_ops->name, td->iodepth); + fprintf(f_out, "%s: (g=%d): rw=%s, bs=%s-%s/%s-%s, ioengine=%s, iodepth=%u\n", td->name, td->groupid, ddir_str[ddir], c1, c2, c3, c4, td->io_ops->name, td->iodepth); free(c1); free(c2); -- 2.25.1