From c5f67f56f46ea5c0b300a2e0eb00a7368efe4f2a Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 02:58:27 +0100 Subject: dashboard: add epoch switch indicator --- src/remake/local.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/remake/local.rs') diff --git a/src/remake/local.rs b/src/remake/local.rs index c80a5a5..e13c6fd 100644 --- a/src/remake/local.rs +++ b/src/remake/local.rs @@ -253,6 +253,12 @@ impl RemakeState { .or_insert_with(Instant::now) } + /// How long ago this node first saw remake `id` committed (`first_seen`), if it did. + #[cfg_attr(not(feature = "dashboard"), allow(dead_code))] + pub(crate) fn seen_for(&self, id: &str) -> Option { + self.lock().first_seen.get(id).map(|at| at.elapsed()) + } + pub(crate) fn status(&self, id: &str) -> Option { self.lock().status.get(id).cloned() } -- cgit v1.3.1