From 300f31c5cd761706c0fd249ba1717c6adcc5a1a5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 Sep 2019 17:18:18 +0300 Subject: [PATCH] memory: fix issue in yash --- pfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfetch b/pfetch index 27c2053..e9e35e1 100755 --- a/pfetch +++ b/pfetch @@ -471,7 +471,7 @@ get_memory() { # Parse the '/proc/meminfo' file splitting on ':' and 'k'. # The format of the file is 'key: 000kB' and an additional # split is used on 'k' to filter out 'kB'. - while IFS=:k read -r key val _; do + while IFS=':k ' read -r key val _; do case $key in MemTotal) mem_used=$((mem_used + val))