From 26f216efefd8e8415a4ecc134ce26157e7c03bac Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 12 Sep 2010 21:38:01 +0300 Subject: [PATCH] * mu-cmd-index: improve time display --- src/mu-cmd-index.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index c60107fc..c1419722 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -223,9 +223,9 @@ run_index (MuIndex *midx, const char* maildir, MuIndexStats *stats, static void show_time (unsigned t, unsigned processed) { - if (processed) - g_message ("Elapsed: %u second(s), ca. %.2f seconds per message", - t, (double)((t+.0)/(processed+.0))); + if (t) + g_message ("Elapsed: %u second(s), ca. %u msg/s", + t, processed/t); else g_message ("Elapsed: %u second(s)", t); }