g910-lights: Use a more accurate form of lowmem detection
This commit is contained in:
parent
4c65887a89
commit
759ba10543
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user