* mu-cmd-index: print indexing updates only once 25, this reduces printing
overhead (of course, --quiet is still faster)
This commit is contained in:
@ -121,6 +121,9 @@ index_msg_cb (MuIndexStats* stats, void *user_data)
|
|||||||
|
|
||||||
if (MU_CAUGHT_SIGNAL)
|
if (MU_CAUGHT_SIGNAL)
|
||||||
return MU_STOP;
|
return MU_STOP;
|
||||||
|
|
||||||
|
if (stats->_processed % 25)
|
||||||
|
return MU_OK;
|
||||||
|
|
||||||
while (len --> 0) /* note the --> operator :-) */
|
while (len --> 0) /* note the --> operator :-) */
|
||||||
g_print ("\b");
|
g_print ("\b");
|
||||||
@ -128,7 +131,7 @@ index_msg_cb (MuIndexStats* stats, void *user_data)
|
|||||||
len = snprintf (output, sizeof(output),
|
len = snprintf (output, sizeof(output),
|
||||||
"%c processing mail; processed: %u; "
|
"%c processing mail; processed: %u; "
|
||||||
"updated/new: %u, cleaned-up: %u",
|
"updated/new: %u, cleaned-up: %u",
|
||||||
(unsigned)kars[(++i/500) % 4],
|
(unsigned)kars[++i % 4],
|
||||||
(unsigned)stats->_processed,
|
(unsigned)stats->_processed,
|
||||||
(unsigned)stats->_updated,
|
(unsigned)stats->_updated,
|
||||||
(unsigned)stats->_cleaned_up);
|
(unsigned)stats->_cleaned_up);
|
||||||
|
|||||||
Reference in New Issue
Block a user