* mu-cmd-index: improve time display
This commit is contained in:
@ -223,9 +223,9 @@ run_index (MuIndex *midx, const char* maildir, MuIndexStats *stats,
|
|||||||
static void
|
static void
|
||||||
show_time (unsigned t, unsigned processed)
|
show_time (unsigned t, unsigned processed)
|
||||||
{
|
{
|
||||||
if (processed)
|
if (t)
|
||||||
g_message ("Elapsed: %u second(s), ca. %.2f seconds per message",
|
g_message ("Elapsed: %u second(s), ca. %u msg/s",
|
||||||
t, (double)((t+.0)/(processed+.0)));
|
t, processed/t);
|
||||||
else
|
else
|
||||||
g_message ("Elapsed: %u second(s)", t);
|
g_message ("Elapsed: %u second(s)", t);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user