macOS: fix memory issue
This commit is contained in:
parent
52617b2e6e
commit
8b9c409650
2
pfetch
2
pfetch
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user