This commit is contained in:
deathbybandaid 2023-12-17 11:50:08 -05:00
parent 0d547a17b9
commit 6daa769ea1

View File

@ -79,7 +79,7 @@ get_system_used_space() {
}
human_readable_bytes() {
local spacebytes="expr $1"
local spacebytes=$(printf -v int '%d\n' "$1" 2>/dev/null)
spacekb=`expr "$spacebytes" / 1024`
spacemb=`expr "$spacebytes" / 1024 / 1024`
spacegb=`expr "$spacebytes" / 1024 / 1024 / 1024`