Skip to content

Commit

Permalink
restore: Only print progress bar for images larger than 16 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Nov 26, 2023
1 parent c6a9359 commit 8a5abb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8a5abb9

Please sign in to comment.