From 297111aa1bfa79310c163a3143696f481be6e2d1 Mon Sep 17 00:00:00 2001 From: tw93 Date: Sat, 28 Feb 2026 11:23:17 +0800 Subject: [PATCH] chore: Delete test_rounding.sh script. --- test_rounding.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 test_rounding.sh diff --git a/test_rounding.sh b/test_rounding.sh deleted file mode 100755 index c7cb772..0000000 --- a/test_rounding.sh +++ /dev/null @@ -1,17 +0,0 @@ -bytes_to_human_new() { - local bytes="$1" - if ((bytes >= 1000000000)); then - local scaled=$(((bytes * 100 + 500000000) / 1000000000)) - printf "%d.%02dGB\n" $((scaled / 100)) $((scaled % 100)) - elif ((bytes >= 1000000)); then - local scaled=$(((bytes * 10 + 500000) / 1000000)) - printf "%d.%01dMB\n" $((scaled / 10)) $((scaled % 10)) - elif ((bytes >= 1000)); then - printf "%dKB\n" $(((bytes + 500) / 1000)) - else - printf "%dB\n" "$bytes" - fi -} -bytes_to_human_new 12187977120 -bytes_to_human_new 12999000000 -bytes_to_human_new 36281810