优化部分细节

This commit is contained in:
Yun
2026-05-27 15:34:09 +08:00
parent e964f5e106
commit 03ef06fdcc
7 changed files with 524 additions and 526 deletions
-3
View File
@@ -119,9 +119,6 @@ func calculateNextInterval(t time.Time, job JobData) (*time.Time, error) {
// 计算下一个执行时间
next := job.BaseTime.Add((intervals + 1) * job.IntervalTime)
// 需要整的
next = next.Round(job.IntervalTime)
// 确保下次执行时间不早于当前时间
if next.Before(t) || next.Equal(t) {
next = next.Add(job.IntervalTime)