src: pilerimport counter display fix

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-07-07 21:48:06 +02:00
parent ae5123ac3c
commit 3289b3fc27
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
} }
else unlink(fname); else unlink(fname);
if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout); if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
} }
snprintf(fname, sizeof(fname)-1, "%ld-%d", t, tot_msgs); snprintf(fname, sizeof(fname)-1, "%ld-%d", t, tot_msgs);
@ -71,7 +71,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
} }
else unlink(fname); else unlink(fname);
if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout); if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
} }
fclose(F); fclose(F);

View File

@ -87,7 +87,7 @@ int import_from_maildir(char *directory, struct session_data *sdata, struct __da
i++; i++;
if(data->quiet == 0) printf("processed: %7d\r", *tot_msgs); fflush(stdout); if(data->quiet == 0){ printf("processed: %7d\r", *tot_msgs); fflush(stdout); }
} }
else { else {
printf("%s is not a file\n", fname); printf("%s is not a file\n", fname);