1
0
Fork 0

sb-memory: refactor

This commit is contained in:
Luca Bilke 2024-07-20 15:28:09 +02:00
parent 5a17a4fd66
commit 1cdc766bf5

View file

@ -1,3 +1,3 @@
#!/bin/sh
printf "%b" "󰘚 "
free -m | sed -n '2{p;q}' | awk '{printf ("%2.2fG/%2.2fG\n", ($3 / 1024), ($2 / 1024))}'
free -m | awk 'NR==2 { printf ("%2.2fG/%2.2fG\n", ($3 / 1024), ($2 / 1024)) }'