From be4745b2dfa993e6cdd6468b092225122c9e7138 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 29 Jan 2024 05:09:44 +0100 Subject: [PATCH] fix: Display size in iec format (#400) --- src/progress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/progress.sh b/src/progress.sh index 2afa4fa..3f774fe 100644 --- a/src/progress.sh +++ b/src/progress.sh @@ -24,7 +24,7 @@ do if [ -f "$file" ]; then bytes=$(du -sb "$file" | cut -f1) if (( bytes > 1000 )); then - size=$(echo "$bytes" | numfmt --to=si --suffix=B | sed -r 's/([A-Z])/ \1/') + size=$(echo "$bytes" | numfmt --to=iec --suffix=B | sed -r 's/([A-Z])/ \1/') echo "${body//(\[P\])/($size)}"> "$info" fi fi