From 759ba105438e7d35ac6e65ea4156de03cd588cbb Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 27 Dec 2019 14:42:56 -0600 Subject: [PATCH] g910-lights: Use a more accurate form of lowmem detection --- g910-lights | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g910-lights b/g910-lights index 3f636e3..621df94 100755 --- a/g910-lights +++ b/g910-lights @@ -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