summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup2.c
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 /tools/idevicebackup2.c
parent1fa41702b6c7b8b169a33b79125d3b24f23c2da8 (diff)
downloadlibimobiledevice-c8c7adfd0e910ba5763777a25ce99f4f9143073f.tar.gz
libimobiledevice-c8c7adfd0e910ba5763777a25ce99f4f9143073f.tar.bz2
idevicebackup2: Suppress repeated printing of global status when 100% is reached
Diffstat (limited to 'tools/idevicebackup2.c')
-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:
int file_count = 0;
int errcode = 0;
const char *errdesc = NULL;
+ int progress_finished = 0;
/* process series of DLMessage* operations */
do {
@@ -2226,7 +2227,10 @@ checkpoint:
}
/* print status */
- if (overall_progress > 0) {
+ if ((overall_progress > 0) && !progress_finished) {
+ if (overall_progress >= 100.0f) {
+ progress_finished = 1;
+ }
print_progress_real(overall_progress, 0);
PRINT_VERBOSE(1, " Finished\n");
}