From 42af09b15b873981682b17e3145b59283a901981 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 27 Apr 2021 19:16:03 -0700 Subject: [PATCH] clear scons cache more aggressively --- selfdrive/test/setup_device_ci.sh | 2 +- selfdrive/thermald/thermald.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/test/setup_device_ci.sh b/selfdrive/test/setup_device_ci.sh index 1b7995b3a..4175d4ce7 100755 --- a/selfdrive/test/setup_device_ci.sh +++ b/selfdrive/test/setup_device_ci.sh @@ -27,7 +27,7 @@ if [ ! -d "$SOURCE_DIR" ]; then fi # clear stale build cache -find /tmp/scons_cache/* -mtime +2 -exec ls '{}' \; || true +find /tmp/scons_cache/* -mtime +1 -exec rm -rf '{}' \; || true # this can get really big on the CI devices rm -rf /data/core diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 9569bd52a..eb83aaf2e 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -244,7 +244,7 @@ def thermald_thread(): msg.deviceState.batteryVoltage = HARDWARE.get_battery_voltage() msg.deviceState.usbOnline = HARDWARE.get_usb_present() - if EON and started_ts is not None and msg.deviceState.memoryUsagePercent > 40: + if EON and started_ts is None and msg.deviceState.memoryUsagePercent > 40: cloudlog.event("High offroad memory usage", mem=msg.deviceState.memoryUsagePercent) # Fake battery levels on uno for frame