Skip to content

Commit

Permalink
Fix timer stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Jun 10, 2024
1 parent 497e0e9 commit 74cbccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AzzyBot-Next/Services/TimerServiceHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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;

await _azuraCastBackgroundService.StartAzuraCastBackgroundServiceAsync(AzuraCastChecks.CheckForFileChanges);
}

if (now - _lastAzuraCastUpdateCheck >= TimeSpan.FromHours(12))
if (now - _lastAzuraCastUpdateCheck >= TimeSpan.FromHours(11.98))
{
_logger.GlobalTimerCheckForAzuraCastUpdates();
_lastAzuraCastUpdateCheck = now;
Expand Down

0 comments on commit 74cbccb

Please sign in to comment.