aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-09-10 03:51:30 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-09-10 03:51:48 +0100
commitc21e737ee3021cecb5de7873c7f32d14a02d3693 (patch)
treea43a72bd9a6e768361721d549737292c2322675b /Scripts/.local/scripts/status
parentc2af358cde2d4cc9bc2d145e49024efa5747dfd1 (diff)
downloaddotfiles-c21e737ee3021cecb5de7873c7f32d14a02d3693.tar.gz
dotfiles-c21e737ee3021cecb5de7873c7f32d14a02d3693.tar.bz2
dotfiles-c21e737ee3021cecb5de7873c7f32d14a02d3693.zip
(Scripts)~small changes to memory status, -emacs_curl
Diffstat (limited to 'Scripts/.local/scripts/status')
-rwxr-xr-xScripts/.local/scripts/status/memory4
1 files changed, 2 insertions, 2 deletions
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"