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
|
fi
|
||||||
# Memory stats on F2 and G7
|
# Memory stats on F2 and G7
|
||||||
g910-led -kn f2 $colormagenta
|
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
|
if [ $(($(date +%s) % 2)) -eq 0 ]; then
|
||||||
g910-led -kn g7 $colorred
|
g910-led -kn g7 $colorred
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user