* mu-cmd-index: improve time display

This commit is contained in:
Dirk-Jan C. Binnema 2010-09-12 21:38:01 +03:00
parent 893130e88e
commit 26f216efef
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}