summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 17:23:28 +0200
committerGravatar Nikias Bassen2012-07-17 17:23:28 +0200
commit0a9fc08109d0c4fb58a3de6d855b38c5d0833289 (patch)
treeaadac1d42f9d61667db7da3e0692dbab07c54e3b /src/common.c
parent1288055d4935b8f11d9625d792fbe8da4b3de55e (diff)
downloadidevicerestore-0a9fc08109d0c4fb58a3de6d855b38c5d0833289.tar.gz
idevicerestore-0a9fc08109d0c4fb58a3de6d855b38c5d0833289.tar.bz2
common: Disable progress bar on WIN32 as it slows down the process a lot
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index ead60b4..e20bd78 100644
--- a/src/common.c
+++ b/src/common.c
@@ -97,6 +97,7 @@ void debug_plist(plist_t plist) {
}
void print_progress_bar(double progress) {
+#ifndef WIN32
int i = 0;
if(progress < 0) return;
if(progress > 100) progress = 100;
@@ -108,6 +109,7 @@ void print_progress_bar(double progress) {
info("] %5.1f%%", progress);
if(progress == 100) info("\n");
fflush(stdout);
+#endif
}
#define GET_RAND(min, max) ((rand() % (max - min)) + min)