macOS: fix memory issue
This commit is contained in:
parent
52617b2e6e
commit
8b9c409650
1 changed files with 1 additions and 1 deletions
2
pfetch
2
pfetch
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue