From 5f251c120934a785f4ee0b5adfdcb07ffbcf69c9 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 13 Jul 2026 14:14:53 +0200 Subject: [PATCH] Reduce auto-refresh countdown from 10s to 3s Updated the `HealthCheckHtmlGenerator` class to change the HTML auto-refresh countdown display from 10 seconds to 3 seconds. Adjusted the `countdown` variable in `health-ui.js` to initialize with 3 seconds, ensuring consistency between the frontend logic and the displayed countdown timer. --- ECMJobRunner.WebCron/HealthCheck/HealthCheckHtmlGenerator.cs | 2 +- ECMJobRunner.WebCron/wwwroot/js/health-ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ECMJobRunner.WebCron/HealthCheck/HealthCheckHtmlGenerator.cs b/ECMJobRunner.WebCron/HealthCheck/HealthCheckHtmlGenerator.cs index 718108e..7bdd1bd 100644 --- a/ECMJobRunner.WebCron/HealthCheck/HealthCheckHtmlGenerator.cs +++ b/ECMJobRunner.WebCron/HealthCheck/HealthCheckHtmlGenerator.cs @@ -253,7 +253,7 @@ public static class HealthCheckHtmlGenerator sb.AppendLine(@"
"); sb.AppendLine(); - sb.Append(" Auto-refresh in 10s"); + sb.Append(" Auto-refresh in 3s"); sb.AppendLine(); sb.AppendLine(@"
"); } diff --git a/ECMJobRunner.WebCron/wwwroot/js/health-ui.js b/ECMJobRunner.WebCron/wwwroot/js/health-ui.js index 6d9716a..36829c8 100644 --- a/ECMJobRunner.WebCron/wwwroot/js/health-ui.js +++ b/ECMJobRunner.WebCron/wwwroot/js/health-ui.js @@ -1,4 +1,4 @@ -let countdown = 10; +let countdown = 3; function updateCountdown() { document.getElementById('countdown').innerText = countdown;