don't check cpu usage in simulation mode

old-commit-hash: 9afa0eec64
commatwo_master
Adeeb Shihadeh 4 years ago
parent 2658ef5243
commit d0dce9a166
  1. 2
      selfdrive/controls/controlsd.py

@ -202,7 +202,7 @@ class Controls:
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:
if max(cpus, default=0) > 95 and not SIMULATION:
self.events.add(EventName.highCpuUsage)
# Alert if fan isn't spinning for 5 seconds

Loading…
Cancel
Save