summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-11-27 00:14:27 +0800
committerGravatar Nikias Bassen2023-11-27 00:14:27 +0800
commit8a5abb99170b324b0fc5a00928ba2ac78a7afc98 (patch)
treea460ea3fe31825e76ceade21f1ab170522d9f644 /src
parentc6a9359f7f1bd532d51fbab79f47e230afe6f5f5 (diff)
downloadidevicerestore-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.c2
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) {