From: Timo Sirainen Date: Thu, 1 Jul 2010 18:08:20 +0000 (+0100) Subject: dsync -v: Make sure the n/m message counter is flushed to stdout. X-Git-Tag: 2.0.rc1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23881a8496e29bc4828a4ca8a3a6941874542023;p=thirdparty%2Fdovecot%2Fcore.git dsync -v: Make sure the n/m message counter is flushed to stdout. --HG-- branch : HEAD --- diff --git a/src/dsync/dsync-brain-msgs-new.c b/src/dsync/dsync-brain-msgs-new.c index bb60dfa719..3a132d1bf5 100644 --- a/src/dsync/dsync-brain-msgs-new.c +++ b/src/dsync/dsync-brain-msgs-new.c @@ -191,8 +191,10 @@ dsync_brain_mailbox_add_new_msgs(struct dsync_brain_msg_iter *iter, while (iter->next_new_msg < msg_count) { struct dsync_brain_new_msg *msg = &msgs[iter->next_new_msg]; - if (output_stats && (n++ % 10) == 0) + if (output_stats && (n++ % 10) == 0) { printf("\r%u/%u", iter->next_new_msg, msg_count); + fflush(stdout); + } if (msg->mailbox_idx != iter->mailbox_idx) { i_assert(msg->mailbox_idx > iter->mailbox_idx);