diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index dae6587..4ea7408 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -92,9 +92,9 @@ export default function PublicDashboardPage() { return () => clearInterval(interval) }, [data, isPasswordProtected, dateRange, todayInterval, multiDayInterval, password]) - // * Tick every 5s to refresh "Updated X ago" display + // * Tick every 1s so "Live · Xs ago" counts in real time useEffect(() => { - const interval = setInterval(() => setTick((t) => t + 1), 5000) + const interval = setInterval(() => setTick((t) => t + 1), 1000) return () => clearInterval(interval) }, []) diff --git a/app/sites/[id]/page.tsx b/app/sites/[id]/page.tsx index ac9bd4c..bd191cf 100644 --- a/app/sites/[id]/page.tsx +++ b/app/sites/[id]/page.tsx @@ -138,9 +138,9 @@ export default function SiteDashboardPage() { return () => clearInterval(interval) }, [siteId, dateRange, todayInterval, multiDayInterval, isSettingsLoaded]) - // * Tick every 5s to refresh "Updated X ago" display + // * Tick every 1s so "Live · Xs ago" counts in real time useEffect(() => { - const interval = setInterval(() => setTick((t) => t + 1), 5000) + const interval = setInterval(() => setTick((t) => t + 1), 1000) return () => clearInterval(interval) }, []) diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index b94e468..85c104b 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -416,9 +416,13 @@ export default function Chart({ {/* * Subtle live/updated indicator in bottom-right corner */} {lastUpdatedAt != null && (