Skip to content

Commit 6d9f116

Browse files
Reduce usage panel polling frequency
1 parent 324ec3a commit 6d9f116

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/UsagePanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ export function UsagePanel() {
493493
useAuthStore.getState().init();
494494
}, []);
495495

496-
// Fetch on mount / un-collapse, and poll every 60s.
496+
// Fetch on mount / un-collapse, and poll every 5 minutes.
497497
// Date changes are handled by handleDateChange / cell click directly — no need to re-fetch here.
498498
useEffect(() => {
499499
if (collapsed) return;
@@ -510,7 +510,7 @@ export function UsagePanel() {
510510
void fetchCloud();
511511
void fetchCloudHeatmap();
512512
}
513-
}, 60_000);
513+
}, 5 * 60_000);
514514
return () => clearInterval(interval);
515515
}, [collapsed, isLoggedIn, fetchUsage, quotaFetch, codexQuotaFetch, fetchCloud, fetchCloudHeatmap]);
516516

0 commit comments

Comments
 (0)