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
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 1 additions and 1 deletions

View File

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