mirror of https://github.com/djcb/mu.git
* mu-cmd-index: improve time display
This commit is contained in:
parent
893130e88e
commit
26f216efef
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue