clear scons cache more aggressively

albatross
Adeeb Shihadeh 2021-04-27 19:16:03 -07:00
parent 2c0b0f927f
commit 42af09b15b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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