From e842b7d73e1a886b89dcaaa1086dfc5fc27b09f6 Mon Sep 17 00:00:00 2001 From: Phoenix Date: Thu, 7 Aug 2025 23:14:59 +0800 Subject: [PATCH] Increase update interval to 120 seconds and adjust auto-refresh fallback to 300 seconds for improved performance. --- appsettings.json | 2 +- wwwroot/js/dashboard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appsettings.json b/appsettings.json index b1d401b..58d7a71 100644 --- a/appsettings.json +++ b/appsettings.json @@ -32,7 +32,7 @@ "BasePath": "/api" }, "MonitoringSettings": { - "UpdateIntervalMs": 5000, + "UpdateIntervalMs": 120000, "DataRetentionDays": 7, "EnableGpuMonitoring": true, "EnableDiskMonitoring": true, diff --git a/wwwroot/js/dashboard.js b/wwwroot/js/dashboard.js index 68656b3..b3aacdb 100644 --- a/wwwroot/js/dashboard.js +++ b/wwwroot/js/dashboard.js @@ -141,7 +141,7 @@ class ResourceDashboard { if (this.autoRefreshEnabled) { this.refreshData(); } - }, 60000); // 60 second fallback + }, 300000); // 300 second fallback } stopAutoRefresh() {