From 960d676fc8509d30b367e6d2cbc56a7cec0651e2 Mon Sep 17 00:00:00 2001 From: dirwin31 <83434411+dirwin31@users.noreply.github.com> Date: Thu, 20 Aug 2026 14:54:37 -0700 Subject: [PATCH] Update dashboard cache timestamp to use monotonic time --- starpilot/system/the_galaxy/the_galaxy.py | 2 +- starpilot/system/the_galaxy/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/starpilot/system/the_galaxy/the_galaxy.py b/starpilot/system/the_galaxy/the_galaxy.py index f2ca383b0..c4f93c73e 100644 --- a/starpilot/system/the_galaxy/the_galaxy.py +++ b/starpilot/system/the_galaxy/the_galaxy.py @@ -6413,7 +6413,7 @@ def setup(app): "dashboard": dashboard_stats, } _STATS_RESPONSE_CACHE.update({ - "updated_at": cache_now, + "updated_at": time.monotonic(), "payload": payload, }) return payload diff --git a/starpilot/system/the_galaxy/utilities.py b/starpilot/system/the_galaxy/utilities.py index b4c2210b8..0aeef3a87 100644 --- a/starpilot/system/the_galaxy/utilities.py +++ b/starpilot/system/the_galaxy/utilities.py @@ -2863,7 +2863,7 @@ def get_dashboard_stats(footage_paths, params_obj=None, now=None): _DASHBOARD_CACHE.update({ "key": cache_key, - "updated_at": cache_now, + "updated_at": time.monotonic(),, "value": copy.deepcopy(dashboard), }) return dashboard