Skip to content

Commit 77c99f7

Browse files
committed
Reduce dashboard auto-refresh to once per hour
Remove the 10s initial re-fetch and change the 60s auto-refresh interval to 3600s. Users can still manually refresh via the button.
1 parent 74cdaa1 commit 77c99f7

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

app/static/js/app.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,22 +158,12 @@ const CP = (() => {
158158
loadEarningsChart('7'),
159159
]);
160160

161-
// Quick re-fetch after 10s to pick up freshly-cached stats (CPU/memory)
162-
// that may not have been available on the very first cold-start load
163-
if (!_initialRefreshDone) {
164-
_initialRefreshDone = true;
165-
setTimeout(() => {
166-
loadDashboardStats();
167-
loadServicesTable();
168-
}, 10000);
169-
}
170-
171-
// Auto-refresh every 60 seconds
161+
// Auto-refresh every hour
172162
if (refreshTimer) clearInterval(refreshTimer);
173163
refreshTimer = setInterval(() => {
174164
loadDashboardStats();
175165
loadServicesTable();
176-
}, 60000);
166+
}, 3600000);
177167
}
178168

179169
async function loadDashboardStats() {

0 commit comments

Comments
 (0)