From 3b331e1df7904db123ca74655d9137cd3f122c28 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 17 Jan 2023 03:53:30 +0000 Subject: [PATCH] take timestamp upon recv current stat --- frontend/src/components/stats/CurrentStats.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/stats/CurrentStats.tsx b/frontend/src/components/stats/CurrentStats.tsx index 15257808e..8a924f08d 100644 --- a/frontend/src/components/stats/CurrentStats.tsx +++ b/frontend/src/components/stats/CurrentStats.tsx @@ -47,6 +47,7 @@ function useCurrentStats() { components: true, processes: true, }); + stats.refresh_ts = Date.now(); setStats((curr) => [...(curr.length > 200 ? curr.slice(1) : curr), stats]); }; let timeout = -1;