make lower 50MB mem warning

This commit is contained in:
Christian Rotzoll 2019-04-16 22:45:57 +01:00
parent 995000bab6
commit 1625dc777f

View file

@ -58,7 +58,7 @@ tempF=$(((cpu/1000) * (9/5) + 32))
ram_avail=$(free -m | grep Mem | awk '{ print $7 }')
ram=$(printf "%sM / %sM" "${ram_avail}" "$(free -m | grep Mem | awk '{ print $2 }')")
if [ ${ram_avail} -lt 100 ]; then
if [ ${ram_avail} -lt 50 ]; then
color_ram="${color_red}\e[7m"
else
color_ram=${color_green}