From d0dce9a1661cf8a1de1f1d486fca3fbd54b6b5d6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 28 Aug 2021 14:55:12 -0700 Subject: [PATCH] don't check cpu usage in simulation mode old-commit-hash: 9afa0eec6451a37a0dc0c39bf4837edd2ad53531 --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 6cd5060b11..1f0225e0a7 100755 --- a/selfdrive/controls/controlsd.py +++ b/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