Fix available memory script.

It was writing a file to my home directory.
This commit is contained in:
Tom Alexander
2022-10-28 23:15:14 -04:00
parent 4ec4ca0e63
commit f0162375d0

View File

@@ -15,7 +15,7 @@ while true; do
free_percent=$((100 * free_pages / total_pages))
text=""
if [ $free_bytes > $((1024 * 1024 * 1024)) ]; then
if [ $free_bytes -ge $((1024 * 1024 * 1024)) ]; then
text="$((free_bytes / 1024 / 1024 / 1024)) GiB"
fi