Add flush after downloading message

When the output is going to a file, glibc seems to buffer way too much
making it hard to monitor progress while tailing a file.

Signed-off-by: Simo Leone <simo@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Simo Leone 2008-11-24 23:31:10 -06:00 committed by Dan McGee
parent b99bebc008
commit 6d8a6aef09
1 changed files with 1 additions and 0 deletions

View File

@ -446,6 +446,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
if(config->noprogressbar || file_total == -1) {
if(file_xfered == 0) {
printf(_("downloading %s...\n"), filename);
fflush(stdout);
}
return;
}