From 92fbf1d8107ffa84da08cb3fca9434f8b2c44975 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 20:46:50 +0300 Subject: [PATCH] memory: clean up --- pfetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pfetch b/pfetch index 57e1834..e932a11 100755 --- a/pfetch +++ b/pfetch @@ -262,7 +262,7 @@ get_memory() { case $key in MemTotal) mem_used=$((mem_used + val)) - mem_total=$val + mem_full=$val ;; Shmem) @@ -276,11 +276,11 @@ get_memory() { done < /proc/meminfo mem_used=$((mem_used / 1024)) - mem_total=$((mem_total / 1024)) + mem_full=$((mem_full / 1024)) ;; esac - log memory "${mem_used}MiB / ${mem_total}MiB" + log memory "${mem_used}MiB / ${mem_full}MiB" } get_ascii() {