diff options
author | Nikias Bassen | 2012-07-30 05:23:31 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-11-07 22:12:34 +0100 |
commit | 503f5bc5d7843b5e154d270b64a86503a632cc50 (patch) | |
tree | ace1778267c2a1819cff4e8baa9680c180519ba9 /src | |
parent | 3bd16a8b8b79cd9af20260cdbd5d3ac7ee3dbd8b (diff) | |
download | idevicerestore-503f5bc5d7843b5e154d270b64a86503a632cc50.tar.gz idevicerestore-503f5bc5d7843b5e154d270b64a86503a632cc50.tar.bz2 |
update progress bar function to use info_stream (if enabled)
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 3 |
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 } |