From 7253c64753169fa82ad357d91f73c6b4825bece2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sun, 22 Dec 2024 13:55:44 +0100 Subject: [PATCH] fix: use B suffix for sizes This makes it clearer that we are talking about bytes c: --- comment_on_pr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comment_on_pr.sh b/comment_on_pr.sh index 7edb23f..0c72671 100755 --- a/comment_on_pr.sh +++ b/comment_on_pr.sh @@ -13,7 +13,7 @@ util_path="${GITHUB_ACTION_PATH:-.}/utils.sh" json_to_md_rows() { jq --raw-output \ ".$1[]"' | "| `\(.name)` | \(.size) | \(.narSize) |"' "$2" | - numfmt --to=iec-i --field=4,6 + numfmt --suffix=B --to=iec-i --field=4,6 } # USAGE: json_to_md_rows [JSON_FILE] @@ -22,7 +22,7 @@ json_to_md_rows() { json_to_md_rows_and_change() { jq --raw-output \ ".$1[]"' | "| `\(.name)` | \(.size) | \(.sizeChange) | \(.narSize) | \(.narSizeChange) |"' | - numfmt --to=iec-i --field=4,6,8,10 + numfmt --suffix=B --to=iec-i --field=4,6,8,10 } # USAGE: has_elements