idevicebackup2: Suppress repeated printing of global status when 100% is reached
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 @@
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 @@
}
/* 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");
}