aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 20:46:50 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 20:46:50 +0300
commit92fbf1d8107ffa84da08cb3fca9434f8b2c44975 (patch)
tree5cc7732df961dda4c2ef62937316c543c8dd0967
parent1b5c44f4bfe86c5fa0dc00f60bb829f76070bd7d (diff)
downloadpfetch-92fbf1d8107ffa84da08cb3fca9434f8b2c44975.tar.gz
memory: clean up
-rwxr-xr-xpfetch6
1 files 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() {