From 0c56c7d76dd4c686a9e76356f6eb8697de755274 Mon Sep 17 00:00:00 2001 From: James Vecellio Date: Wed, 26 Nov 2025 09:37:59 -0800 Subject: [PATCH] refreshing half a second seems legit. --- selfdrive/ui/sunnypilot/layouts/settings/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/models.py b/selfdrive/ui/sunnypilot/layouts/settings/models.py index 3ee6c97f04..5118e11ec7 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/models.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/models.py @@ -199,7 +199,7 @@ class ModelsLayout(Widget): gui_app.set_modal_overlay(ConfirmDialog(msg, tr("Reset Calibration"), tr("Cancel")), callback=_callback) def _calculate_cache_size(self): - if (current_time := time.monotonic()) - self.last_cache_calc_time > 0.2: + if (current_time := time.monotonic()) - self.last_cache_calc_time > 0.5: self.last_cache_calc_time = current_time self.cached_size = 0 if os.path.exists(CUSTOM_MODEL_PATH):