diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-11 21:42:43 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-11 21:42:43 -0400 |
commit | b8b328f962b81f26d91da4da918a461677af0eaa (patch) | |
tree | 1f066864ce37e912bd9ae8e14334e3a94085e266 /doc/location_tracking.mdwn | |
parent | dc2f80d106b1abca527048f42f1e4acc866e2d84 (diff) |
Improve handling on monthly/yearly scheduling.
Code was still buggy, it turns out (though the recursion checker caught
it). In the case of (Schedule (Monthly Nothing) AnyTime), where the last
run was on yyyy-12-31, it looped forever.
Also, the handling of (Schedule (Yearly Nothing) AnyTime) was wacky where
the last run was yyyy-12-31. It would suggest a window starting on the 3rd
for the next run (because 31 mod 28 is 3).
I think that originally I was wanted to avoid running on 01-01 if it had
just run on 12-31. But the code didn't accomplish this, and it's not
necessary anyway. This is supposed to calculate the next window meeting the
schedule, and for (Schedule (Monthly Nothing), the window starts at 01-01
and runs through 01-31. If that causes two back-to-back runs, well the next
one will not be until 02-01 at the earliest.
Also, back-to-back runs can be avoided, if desired, by using Divisible 2.
Diffstat (limited to 'doc/location_tracking.mdwn')
0 files changed, 0 insertions, 0 deletions