mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
stricter memory usage check (#20985)
old-commit-hash: c04b47938d34e8f320e6483a47509ca5d7ff9d1b
This commit is contained in:
@@ -187,7 +187,7 @@ class Controls:
|
||||
if self.sm['deviceState'].freeSpacePercent < 7:
|
||||
# under 7% of space free no enable allowed
|
||||
self.events.add(EventName.outOfSpace)
|
||||
if self.sm['deviceState'].memoryUsagePercent > 90:
|
||||
if self.sm['deviceState'].memoryUsagePercent > 65:
|
||||
self.events.add(EventName.lowMemory)
|
||||
|
||||
# Alert if fan isn't spinning for 5 seconds
|
||||
|
||||
Reference in New Issue
Block a user