<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 6:04 PM, Robin Sonefors <span dir="ltr"><<a href="mailto:robin.sonefors@op5.com" target="_blank">robin.sonefors@op5.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
A couple of excellent tests by Jean Gabès - marked as todo - pointed out<br>
problems with how nagios calculates the next valid time in a timeperiod that<br>
has complicated combinations of exceptions and exclusions.<br>
<br>
This patchset refactors the relevant code to fix all failing tests, as well as adds a<br>
new one.<br>
<br>
<br><br></blockquote><div>Hi,<br><br></div><div>Congrats, these timeperiod computation are really a nigthmare :D<br>Especially with corner case like "I need the last monday but we are the last tuesday". If you need more tests for theses special cases, I can provide you some more, with really crazy time computation :p<br>
<br><br></div><div>Jean<br></div></div><br></div></div>