aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/memory
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 20:52:53 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 20:52:53 +0530
commitd2e7060f89e8782c223bc8a29091cca429bc318a (patch)
tree87bd7063077de0ebc3945a923b380c7ffba26f60 /Scripts/.local/scripts/status/memory
parent9ef78de26320e8d835276344802e95c84c263277 (diff)
downloaddotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.tar.gz
dotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.tar.bz2
dotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.zip
(Scripts|SystemD)~lower size of scripts
Diffstat (limited to 'Scripts/.local/scripts/status/memory')
-rwxr-xr-xScripts/.local/scripts/status/memory8
1 files changed, 1 insertions, 7 deletions
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory
index 2d1c328..e9e6f8d 100755
--- a/Scripts/.local/scripts/status/memory
+++ b/Scripts/.local/scripts/status/memory
@@ -5,10 +5,4 @@ used=$(echo $line | awk '{print $3}');
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 -eq "" ]];
-then
- emacs="N/A"
-fi
-
-echo "⾝ $(printf "%dMB" $used) $value% -> $emacs"
+echo "⾝ $(printf "%dMB" $used) $value%"