From 0fb4a5937293235346c1ba5af5891e58cea45953 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 4 Nov 2025 16:38:41 +0000 Subject: Small adjustments on other scripts --- Scripts/.local/scripts/status/memory | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Scripts/.local/scripts/status/memory') diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory index 2648deb..acac48f 100755 --- a/Scripts/.local/scripts/status/memory +++ b/Scripts/.local/scripts/status/memory @@ -1,8 +1,8 @@ #!/usr/bin/env sh -line=$(free -m | sed -n 2p); +line=$(free -m | tail -2); used=$(echo $line | awk '{print $3}'); available=$(echo $line | awk '{print $2}'); -value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) +percentage=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) -echo "㊎ $(printf "%dMB" $used) $value%" +echo "㊎ $(printf "%dMB" $used) $percentage%" -- cgit v1.2.3-13-gbd6f