This commit is contained in:
deathbybandaid 2023-12-17 11:41:54 -05:00
parent 5af012495b
commit 4a9315eef5

View File

@ -79,10 +79,9 @@ get_system_used_space() {
}
human_readable_bytes() {
local spacebytes="$1"
spacekb=`expr $spacebytes / 1024`
spacemb=`expr $spacebytes / 1024 / 1024`
spacegb=`expr $spacebytes / 1024 / 1024 / 1024`
spacekb=`expr $1 / 1024`
spacemb=`expr $1 / 1024 / 1024`
spacegb=`expr $1 / 1024 / 1024 / 1024`
if [[ "$spacegb" -gt 0 ]]
then