[O] Fix shellcheck warnings

This commit is contained in:
Hykilpikonna 2022-11-01 14:26:01 -04:00
parent c00568d413
commit 5012c996f2
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26

View file

@ -2716,7 +2716,7 @@ get_memory() {
pages_wired="$(vm_stat | awk '/ wired/ { print $4 }')"
pages_compressed="$(vm_stat | awk '/ occupied/ { printf $5 }')"
pages_compressed="${pages_compressed:-0}"
mem_used="$(((${pages_app} + ${pages_wired//.} + ${pages_compressed//.}) * hw_pagesize / 1024 / 1024))"
mem_used="$(((pages_app + ${pages_wired//.} + ${pages_compressed//.}) * hw_pagesize / 1024 / 1024))"
;;
"BSD" | "MINIX")