From 8b9c409650f290585571f733726f3bd2c1138ac6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 3 Oct 2019 21:06:51 +0300 Subject: [PATCH] macOS: fix memory issue --- pfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfetch b/pfetch index b7936e4..36a578b 100755 --- a/pfetch +++ b/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