(General)~some minor changes for supporting the desktop

These changes are mostly surface level.
This commit is contained in:
2021-07-10 21:24:44 +01:00
parent ac9b93240c
commit 0eb0748f05
3 changed files with 4 additions and 2 deletions

View File

@@ -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%"