From ce58fb541ce434b8759db8acecf9b477e2844d85 Mon Sep 17 00:00:00 2001 From: Lyall Date: Mon, 30 Jun 2025 04:04:10 +0100 Subject: [PATCH] fix refresh interval getting incremented by 10 on status page --- src/pages/StatusPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index e0df74fde..b398f5587 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -720,7 +720,7 @@ export default { // Configure auto-refresh loop feedInterval = setInterval(() => { this.updateHeartbeatList(); - }, (this.config.autoRefreshInterval + 10) * 1000); + }, Math.max(5, this.config.autoRefreshInterval) * 1000); this.updateUpdateTimer(); }).catch( function (error) { @@ -806,7 +806,7 @@ export default { clearInterval(this.updateCountdown); this.updateCountdown = setInterval(() => { - const countdown = dayjs.duration(this.lastUpdateTime.add(this.config.autoRefreshInterval, "seconds").add(10, "seconds").diff(dayjs())); + const countdown = dayjs.duration(this.lastUpdateTime.add(Math.max(5, this.config.autoRefreshInterval), "seconds").diff(dayjs())); if (countdown.as("seconds") < 0) { clearInterval(this.updateCountdown); } else {