aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/memory
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-07-10 21:24:44 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-07-11 13:32:42 +0100
commit0eb0748f05dd07fab605aab2318fbf1478144b4a (patch)
tree492d20148b733c2e144bfe47c20dac5ab8a46955 /Scripts/.local/scripts/status/memory
parentac9b93240c33acb1ea6954a6c09ecb00ada16e9c (diff)
downloaddotfiles-0eb0748f05dd07fab605aab2318fbf1478144b4a.tar.gz
dotfiles-0eb0748f05dd07fab605aab2318fbf1478144b4a.tar.bz2
dotfiles-0eb0748f05dd07fab605aab2318fbf1478144b4a.zip
(General)~some minor changes for supporting the desktop
These changes are mostly surface level.
Diffstat (limited to 'Scripts/.local/scripts/status/memory')
-rwxr-xr-xScripts/.local/scripts/status/memory3
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory
index 042596d..ecdfc0e 100755
--- a/Scripts/.local/scripts/status/memory
+++ b/Scripts/.local/scripts/status/memory
@@ -3,4 +3,5 @@
line=$(free -m | sed -n 2p);
used=$(echo $line | awk '{print $3}');
available=$(echo $line | awk '{print $2}');
-echo "" $(printf "%dMB" $used) $(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1)
+value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1)
+echo " $(printf "%dMB" $used) $value%"