From bbd2d8b23c064b2a553a6b0b99d673727a9b24c6 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Sun, 10 May 2020 00:52:23 -0500 Subject: [PATCH] More precise RAM measurement and fix of memory type --- .local/bin/statusbar/memory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/memory b/.local/bin/statusbar/memory index 66fcd8be..0d64508d 100755 --- a/.local/bin/statusbar/memory +++ b/.local/bin/statusbar/memory @@ -9,4 +9,4 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -free -h | sed -n '2{p;q}' | awk '{print "🧠", $3 "/" $2}' +free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB/%2.2fGiB", ( $3 / 1024), ($2 / 1024))}'