diff options
author | Nikias Bassen | 2023-11-27 00:14:27 +0800 |
---|---|---|
committer | Nikias Bassen | 2023-11-27 00:14:27 +0800 |
commit | 8a5abb99170b324b0fc5a00928ba2ac78a7afc98 (patch) | |
tree | a460ea3fe31825e76ceade21f1ab170522d9f644 /src | |
parent | c6a9359f7f1bd532d51fbab79f47e230afe6f5f5 (diff) | |
download | idevicerestore-8a5abb99170b324b0fc5a00928ba2ac78a7afc98.tar.gz idevicerestore-8a5abb99170b324b0fc5a00928ba2ac78a7afc98.tar.bz2 |
restore: Only print progress bar for images larger than 16 MB
Diffstat (limited to 'src')
-rw-r--r-- | src/restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c index 772f57f..1261147 100644 --- a/src/restore.c +++ b/src/restore.c @@ -3561,7 +3561,7 @@ static int _restore_send_file_data(struct _restore_send_file_data_ctx* rctx, voi return -1; } plist_free(dict); - if (total_size > 0) { + if (total_size > 0x1000000) { double progress = (double)done / (double)total_size; int progress_int = (int)(progress*100.0); if (progress_int > rctx->last_progress) { |