From c8c7adfd0e910ba5763777a25ce99f4f9143073f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 5 Oct 2016 17:07:09 +0200 Subject: idevicebackup2: Suppress repeated printing of global status when 100% is reached --- tools/idevicebackup2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/idevicebackup2.c') 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"); } -- cgit v1.1-32-gdbae