diff options
Diffstat (limited to 'Scripts/.local/scripts/status/memory')
-rwxr-xr-x | Scripts/.local/scripts/status/memory | 8 |
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%" |