From 74cbccb6746c049d893d68e6cf52bde5f240eac3 Mon Sep 17 00:00:00 2001 From: Sella-GH <147769367+Sella-GH@users.noreply.github.com> Date: Mon, 10 Jun 2024 23:02:23 +0200 Subject: [PATCH] Fix timer stamps --- AzzyBot-Next/Services/TimerServiceHost.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AzzyBot-Next/Services/TimerServiceHost.cs b/AzzyBot-Next/Services/TimerServiceHost.cs index fa61168f..d443f709 100644 --- a/AzzyBot-Next/Services/TimerServiceHost.cs +++ b/AzzyBot-Next/Services/TimerServiceHost.cs @@ -65,7 +65,7 @@ private async void TimerTimeoutAsync(object? o) await _updaterService.CheckForAzzyUpdatesAsync(); } - if (now - _lastAzuraCastFileCheck >= TimeSpan.FromHours(1)) + if (now - _lastAzuraCastFileCheck >= TimeSpan.FromHours(0.98)) { _logger.GlobalTimerCheckForAzuraCastFiles(); _lastAzuraCastFileCheck = now; @@ -73,7 +73,7 @@ private async void TimerTimeoutAsync(object? o) await _azuraCastBackgroundService.StartAzuraCastBackgroundServiceAsync(AzuraCastChecks.CheckForFileChanges); } - if (now - _lastAzuraCastUpdateCheck >= TimeSpan.FromHours(12)) + if (now - _lastAzuraCastUpdateCheck >= TimeSpan.FromHours(11.98)) { _logger.GlobalTimerCheckForAzuraCastUpdates(); _lastAzuraCastUpdateCheck = now;