From 37dd411698bd6eae8365260dde39b8ae9c7cbd36 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sun, 30 Aug 2020 20:56:36 +0800 Subject: all: overhaul, move dotfile specifics to .local/share/dotfiles and more --- basics/.local/bin/statusbar/memory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basics/.local/bin/statusbar/memory') diff --git a/basics/.local/bin/statusbar/memory b/basics/.local/bin/statusbar/memory index 7a952d8..77f462b 100755 --- a/basics/.local/bin/statusbar/memory +++ b/basics/.local/bin/statusbar/memory @@ -13,8 +13,8 @@ print Total ":" Available ":" Free ":" Buffers ":" Cached ":" SReclaimable ":" S echo "$meminfo" | while IFS=: read -r t a f b c sr sh; do - memfree=$(echo "$a $t" | awk '{printf "%.3f", ($1 / $2) * 100}') - memused=$(echo "$memfree" | awk '{printf "%.3f", (100 - $1)}') + memfree=$(echo "$a $t" | awk '{printf "%.2f", ($1 / $2) * 100}') + memused=$(echo "$memfree" | awk '{printf "%.2f", (100 - $1)}') # Percentage values # TODO: other values, controllable by flags? -- cgit v1.2.3