From 50a3715654772f67f7123e5a22c6c323ebf0f50d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 13 Sep 2010 23:46:33 +0300 Subject: [PATCH] * mu-cmd-index: make the little -\|/ rotation a bit slower --- src/mu-cmd-index.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index f3116156..91dcb48f 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -114,7 +114,7 @@ static MuResult index_msg_cb (MuIndexStats* stats, void *user_data) { char *kars="-\\|/"; - char output[314]; + char output[120]; static int i = 0; static int len = 0; @@ -128,12 +128,11 @@ index_msg_cb (MuIndexStats* stats, void *user_data) len = snprintf (output, sizeof(output), "%c processing mail; processed: %u; " "updated/new: %u, cleaned-up: %u", - (unsigned)kars[i % 4], + (unsigned)kars[(++i/500) % 4], (unsigned)stats->_processed, (unsigned)stats->_updated, (unsigned)stats->_cleaned_up); g_print ("%s", output); - ++i; return MU_CAUGHT_SIGNAL ? MU_STOP: MU_OK; }