g910-lights: Use a more accurate form of lowmem detection

This commit is contained in:
Salt 2019-12-27 14:42:56 -06:00
parent 4c65887a89
commit 759ba10543
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ loop-stats() {
fi
# Memory stats on F2 and G7
g910-led -kn f2 $colormagenta
if (( $(free | grep Mem | awk '{print ($3/$2 > 0.25)}') )); then
if (( $(free | grep Mem | awk '{print ($7/$2 < 0.25)}') )); then
if [ $(($(date +%s) % 2)) -eq 0 ]; then
g910-led -kn g7 $colorred
else