summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-10-05 17:07:09 +0200
committerGravatar Nikias Bassen2016-10-05 17:07:09 +0200
commitc8c7adfd0e910ba5763777a25ce99f4f9143073f (patch)
tree786ae7e48ccee412fd762979394037fa9fd93f6a
parent1fa41702b6c7b8b169a33b79125d3b24f23c2da8 (diff)
downloadlibimobiledevice-c8c7adfd0e910ba5763777a25ce99f4f9143073f.tar.gz
libimobiledevice-c8c7adfd0e910ba5763777a25ce99f4f9143073f.tar.bz2
idevicebackup2: Suppress repeated printing of global status when 100% is reached
-rw-r--r--tools/idevicebackup2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index eb78b06..7b15897 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1999,6 +1999,7 @@ checkpoint:
1999 int file_count = 0; 1999 int file_count = 0;
2000 int errcode = 0; 2000 int errcode = 0;
2001 const char *errdesc = NULL; 2001 const char *errdesc = NULL;
2002 int progress_finished = 0;
2002 2003
2003 /* process series of DLMessage* operations */ 2004 /* process series of DLMessage* operations */
2004 do { 2005 do {
@@ -2226,7 +2227,10 @@ checkpoint:
2226 } 2227 }
2227 2228
2228 /* print status */ 2229 /* print status */
2229 if (overall_progress > 0) { 2230 if ((overall_progress > 0) && !progress_finished) {
2231 if (overall_progress >= 100.0f) {
2232 progress_finished = 1;
2233 }
2230 print_progress_real(overall_progress, 0); 2234 print_progress_real(overall_progress, 0);
2231 PRINT_VERBOSE(1, " Finished\n"); 2235 PRINT_VERBOSE(1, " Finished\n");
2232 } 2236 }