Browse Source

Merge pull request #57 from mtojek/master

Fix larger amount of entries after host sleep
Rob Figueiredo 9 years ago
parent
commit
8dc4916d41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cron.go

+ 1 - 1
cron.go

@@ -174,7 +174,7 @@ func (c *Cron) run() {
 				}
 				go c.runWithRecovery(e.Job)
 				e.Prev = e.Next
-				e.Next = e.Schedule.Next(effective)
+				e.Next = e.Schedule.Next(now)
 			}
 			continue