diff options
author | Yorhel <git@yorhel.nl> | 2020-06-07 11:05:20 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-06-07 11:05:33 +0200 |
commit | 36c67cbcbff6c02eb63704a385e8c3710ebc1497 (patch) | |
tree | c4c02f33471e999e9e51ed969aaee2c560439b62 /lib/Multi | |
parent | e75a6195e05b4d8b71e25280101d8af4b0d7fb6c (diff) |
Multi::Core: Fix offset calculation in schedule()
The daily cron *should* have been running at 7:30 UTC after commit
1b6d7fbb2eb4ba76d1d2c8844afaf8aa0fe4ab0a, but it ended up running at
16:30 instead...
Diffstat (limited to 'lib/Multi')
-rw-r--r-- | lib/Multi/Core.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/Core.pm b/lib/Multi/Core.pm index f8b277bf..0cd44e7e 100644 --- a/lib/Multi/Core.pm +++ b/lib/Multi/Core.pm @@ -148,7 +148,7 @@ sub run { # Eg. daily at 12:00 GMT: schedule 24*3600, 12*3600, sub { .. }. sub schedule { my($o, $i, $s) = @_; - AE::timer($i - ((AE::time() + $o) % $i), $i, $s); + AE::timer($i - ((AE::time() - $o) % $i), $i, $s); } |