fix(ActionScheduler): remove second offset when loading hour actions

This commit is contained in:
2026-02-08 21:51:30 +08:00
parent 76c9c27532
commit 9bff74c8c7

View File

@@ -180,7 +180,7 @@ class ActionScheduler : AgentRunningSubModule<Set<ScheduledActionData>, Void>()
private fun loadHourActions(): ZonedDateTime {
val load: (ZonedDateTime, ScheduledActionData) -> Unit = { latestExecutionTime, actionData ->
val secondsTime = latestExecutionTime.minute * 60 + latestExecutionTime.second - 1
val secondsTime = latestExecutionTime.minute * 60 + latestExecutionTime.second
wheel[secondsTime].add(actionData)
}