stricter memory usage check (#20985)

pull/20987/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent 63e521935e
commit c04b47938d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/controlsd.py

@ -187,7 +187,7 @@ class Controls:
if self.sm['deviceState'].freeSpacePercent < 7: if self.sm['deviceState'].freeSpacePercent < 7:
# under 7% of space free no enable allowed # under 7% of space free no enable allowed
self.events.add(EventName.outOfSpace) self.events.add(EventName.outOfSpace)
if self.sm['deviceState'].memoryUsagePercent > 90: if self.sm['deviceState'].memoryUsagePercent > 65:
self.events.add(EventName.lowMemory) self.events.add(EventName.lowMemory)
# Alert if fan isn't spinning for 5 seconds # Alert if fan isn't spinning for 5 seconds

Loading…
Cancel
Save