macOS: fix memory issue

This commit is contained in:
Dylan Araps 2019-10-03 21:06:51 +03:00
parent 52617b2e6e
commit 8b9c409650
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
pfetch
View File

@ -551,7 +551,7 @@ get_memory() {
# split is used on '.' to filter it out. # split is used on '.' to filter it out.
while IFS=:. read -r key val; do while IFS=:. read -r key val; do
case $key in case $key in
*wired*|*active*|*occupied*) *' wired'*|*' active'*|*' occupied'*)
mem_used=$((mem_used + ${val:-0})) mem_used=$((mem_used + ${val:-0}))
;; ;;
esac esac