From 8a5abb99170b324b0fc5a00928ba2ac78a7afc98 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 27 Nov 2023 00:14:27 +0800 Subject: [PATCH] restore: Only print progress bar for images larger than 16 MB --- src/restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restore.c b/src/restore.c index 772f57fd..1261147f 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) {