dovecot-2.0: dsync -v: Make sure the n/m message counter is flus...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 1 21:08:25 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/3c7d3258ac1d
changeset: 11689:3c7d3258ac1d
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 01 19:08:20 2010 +0100
description:
dsync -v: Make sure the n/m message counter is flushed to stdout.
diffstat:
src/dsync/dsync-brain-msgs-new.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r b94e6bf6b9c9 -r 3c7d3258ac1d src/dsync/dsync-brain-msgs-new.c
--- 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);
More information about the dovecot-cvs
mailing list