Refactor logic for next valid time

nap naparuba at gmail.com
Tue May 7 08:04:32 CEST 2013


On Mon, May 6, 2013 at 6:04 PM, Robin Sonefors <robin.sonefors at op5.com>wrote:

> Hi list,
>
> A couple of excellent tests by Jean Gabès - marked as todo - pointed out
> problems with how nagios calculates the next valid time in a timeperiod
> that
> has complicated combinations of exceptions and exclusions.
>
> This patchset refactors the relevant code to fix all failing tests, as
> well as adds a
> new one.
>
>
>
> Hi,

Congrats, these timeperiod computation are really a nigthmare :D
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


Jean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20130507/ff318121/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list