From c21e737ee3021cecb5de7873c7f32d14a02d3693 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Sep 2023 03:51:30 +0100 Subject: (Scripts)~small changes to memory status, -emacs_curl --- Scripts/.local/scripts/status/memory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Scripts/.local/scripts/status') diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory index 57491e5..e53921a 100755 --- a/Scripts/.local/scripts/status/memory +++ b/Scripts/.local/scripts/status/memory @@ -6,9 +6,9 @@ available=$(echo $line | awk '{print $2}'); value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) emacs=$(systemctl --user status emacs | grep "Memory: " | sed "s/[ ]*//;s/Memory: //") -if [[ $emacs = "" ]]; +if [[ $emacs -eq "" ]]; then emacs="N/A" fi -echo " $(printf "%dMB" $used) $value% ->  $emacs" +echo " $(printf "%dMB" $used) $value% ->  $emacs" -- cgit v1.2.3-13-gbd6f