fix: use B suffix for sizes

This makes it clearer that we are talking about bytes c:
This commit is contained in:
Jalil David Salamé Messina 2024-12-22 13:55:44 +01:00
parent 1ec7c2a0df
commit 7253c64753
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -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 <FIELD> [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 <FIELD> <JSON_FILE>