aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-10-03 21:06:51 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-10-03 21:06:51 +0300
commit8b9c409650f290585571f733726f3bd2c1138ac6 (patch)
tree2e76263afc6f49f326817fbb294ef35be74fd2fd
parent52617b2e6e18b01c995eacbf95ff50b1a9b503d3 (diff)
downloadpfetch-8b9c409650f290585571f733726f3bd2c1138ac6.tar.gz
macOS: fix memory issue
-rwxr-xr-xpfetch2
1 files changed, 1 insertions, 1 deletions
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