aboutsummaryrefslogtreecommitdiffstats
path: root/basics/.local/bin/statusbar/memory
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2020-08-30 20:56:36 +0800
committerPeter Son Struschka <me@peter-struschka.com>2020-08-30 20:58:04 +0800
commit37dd411698bd6eae8365260dde39b8ae9c7cbd36 (patch)
tree978dd6ea3e72a86e4a3e0314b86d5137fc394785 /basics/.local/bin/statusbar/memory
parenta1d6fc2f3e6ab041cc51cb085ac59a646a126d25 (diff)
downloaddotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.tar.gz
dotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.tar.bz2
dotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.tar.lz
dotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.tar.xz
dotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.tar.zst
dotfiles-37dd411698bd6eae8365260dde39b8ae9c7cbd36.zip
all: overhaul, move dotfile specifics to .local/share/dotfiles and more
Diffstat (limited to 'basics/.local/bin/statusbar/memory')
-rwxr-xr-xbasics/.local/bin/statusbar/memory4
1 files changed, 2 insertions, 2 deletions
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?