macOS: fix memory issue

This commit is contained in:
Dylan Araps
2019-10-03 21:06:51 +03:00
parent 52617b2e6e
commit 8b9c409650

2
pfetch
View File

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