Status bar fixes for nettraf and memory (#627)

* More precise RAM measurement and fix of memory type

* Should be KiB 

kB refers to
https://en.wikipedia.org/wiki/Kibibyte
This commit is contained in:
Vlad Doster authored and GitHub committed 2020-05-10 07:58:09 -04:00
1 parent 6577acae89
commit 8f05c7d79f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,4 +9,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
free -h | sed -n '2{p;q}' | awk '{print "🧠", $3 "/" $2}'
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB/%2.2fGiB", ( $3 / 1024), ($2 / 1024))}'