From 0eb0748f05dd07fab605aab2318fbf1478144b4a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 10 Jul 2021 21:24:44 +0100 Subject: (General)~some minor changes for supporting the desktop These changes are mostly surface level. --- Scripts/.local/scripts/status/memory | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Scripts/.local/scripts/status/memory') diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory index 042596d..ecdfc0e 100755 --- a/Scripts/.local/scripts/status/memory +++ b/Scripts/.local/scripts/status/memory @@ -3,4 +3,5 @@ line=$(free -m | sed -n 2p); used=$(echo $line | awk '{print $3}'); available=$(echo $line | awk '{print $2}'); -echo "" $(printf "%dMB" $used) $(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) +value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) +echo " $(printf "%dMB" $used) $value%" -- cgit v1.2.3-13-gbd6f