From 9bff74c8c7c5dfc43dd3597ed78290acc54e4623 Mon Sep 17 00:00:00 2001 From: slhafzjw Date: Sun, 8 Feb 2026 21:51:30 +0800 Subject: [PATCH] fix(ActionScheduler): remove second offset when loading hour actions --- .../modules/action/dispatcher/scheduler/ActionScheduler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/scheduler/ActionScheduler.kt b/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/scheduler/ActionScheduler.kt index c68dc002..11838311 100644 --- a/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/scheduler/ActionScheduler.kt +++ b/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/scheduler/ActionScheduler.kt @@ -180,7 +180,7 @@ class ActionScheduler : AgentRunningSubModule, 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) }