Mercurial > dovecot > core-2.2
changeset 11689:3c7d3258ac1d HEAD
dsync -v: Make sure the n/m message counter is flushed to stdout.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 01 Jul 2010 19:08:20 +0100 |
parents | b94e6bf6b9c9 |
children | b8a74b3fb16d |
files | src/dsync/dsync-brain-msgs-new.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dsync/dsync-brain-msgs-new.c Thu Jul 01 19:07:32 2010 +0100 +++ b/src/dsync/dsync-brain-msgs-new.c Thu Jul 01 19:08:20 2010 +0100 @@ -191,8 +191,10 @@ 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);