mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
refactor: UpdateRunTime -> GetNextRunTime, add UpdateRunTime for caching GetNextRunTime value
- also swap the operands on the delta time calculation
This commit is contained in:
@@ -137,7 +137,7 @@ namespace ICD.Common.Utils.Services.Scheduler
|
||||
return;
|
||||
}
|
||||
|
||||
long msToNextAction = (long)(DateTime.Now - action.NextRunTime.Value).TotalMilliseconds;
|
||||
long msToNextAction = (long)(action.NextRunTime.Value - DateTime.Now).TotalMilliseconds;
|
||||
m_Timer.Reset(msToNextAction);
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user