summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index a250a40..01de503 100644
--- a/src/common.c
+++ b/src/common.c
@@ -169,6 +169,7 @@ void debug_plist(plist_t plist) {
void print_progress_bar(double progress) {
#ifndef WIN32
+ if (info_disabled) return;
int i = 0;
if(progress < 0) return;
if(progress > 100) progress = 100;
@@ -179,7 +180,7 @@ void print_progress_bar(double progress) {
}
info("] %5.1f%%", progress);
if(progress == 100) info("\n");
- fflush(stdout);
+ fflush((info_stream) ? info_stream : stdout);
#endif
}