temporarily disable per-core cpu usage check

old-commit-hash: 7394956a90
commatwo_master
Adeeb Shihadeh 4 years ago
parent 263b37364c
commit 300294d0c6
  1. 8
      selfdrive/controls/controlsd.py

@ -206,9 +206,11 @@ class Controls:
# TODO: make tici threshold the same
if self.sm['deviceState'].memoryUsagePercent > (90 if TICI else 65) and not SIMULATION:
self.events.add(EventName.lowMemory)
cpus = list(self.sm['deviceState'].cpuUsagePercent)[:(-1 if EON else None)]
if max(cpus, default=0) > 95 and not SIMULATION:
self.events.add(EventName.highCpuUsage)
# TODO: enable this once loggerd CPU usage is more reasonable
#cpus = list(self.sm['deviceState'].cpuUsagePercent)[:(-1 if EON else None)]
#if max(cpus, default=0) > 95 and not SIMULATION:
# self.events.add(EventName.highCpuUsage)
# Alert if fan isn't spinning for 5 seconds
if self.sm['peripheralState'].pandaType in [PandaType.uno, PandaType.dos]:

Loading…
Cancel
Save