update 2025-11-08 09:41:57

This commit is contained in:
kenzok8
2025-11-08 09:41:57 +08:00
parent 99f8641a42
commit f57f896a58

View File

@@ -90,7 +90,7 @@ format_filesize() {
local gb; gb=$((mb * 1024))
local tb; tb=$((gb * 1024))
local pb; pb=$((tb * 1024))
local size; size=
local size; size=$1
if [ -n "$size" ]; then
if [ "$size" -lt "$kb" ]; then
echo "$(awk "BEGIN {print $size / $b}") B"