From c25a82399dcf6c0739501e7c2f6d9ec9ada619ec Mon Sep 17 00:00:00 2001 From: Jeffery Thompson Date: Thu, 12 Jul 2018 14:36:58 -0400 Subject: [PATCH] fix: remove unnecessary default timer interval --- .../Services/Scheduler/ActionSchedulerService.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ICD.Common.Utils/Services/Scheduler/ActionSchedulerService.cs b/ICD.Common.Utils/Services/Scheduler/ActionSchedulerService.cs index d98fb66..ee59816 100644 --- a/ICD.Common.Utils/Services/Scheduler/ActionSchedulerService.cs +++ b/ICD.Common.Utils/Services/Scheduler/ActionSchedulerService.cs @@ -9,8 +9,6 @@ namespace ICD.Common.Utils.Services.Scheduler { public sealed class ActionSchedulerService : IActionSchedulerService, IDisposable { - private const long MAX_TIMER_INTERVAL = 5*60*1000; // 5 minutes - private readonly List m_Actions; private readonly SafeTimer m_Timer; private readonly SafeCriticalSection m_CriticalSection; @@ -140,8 +138,7 @@ namespace ICD.Common.Utils.Services.Scheduler } long msToNextAction = (long)(DateTime.Now - action.NextRunTime.Value).TotalMilliseconds; - long timerDueTime = Math.Min(msToNextAction, MAX_TIMER_INTERVAL); - m_Timer.Reset(timerDueTime); + m_Timer.Reset(msToNextAction); } finally {