From 503f5bc5d7843b5e154d270b64a86503a632cc50 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 30 Jul 2012 05:23:31 +0200 Subject: update progress bar function to use info_stream (if enabled) --- src/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common.c') 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 } -- cgit v1.1-32-gdbae