diff options
Diffstat (limited to 'basics/.local/bin/statusbar/memory')
| -rwxr-xr-x | basics/.local/bin/statusbar/memory | 4 |
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? |
