From d30f9bd9f4607097b743cd8ac0bc462ecc85a9f0 Mon Sep 17 00:00:00 2001 From: Gerhard Lausser Date: Fri, 28 Jan 2011 16:53:29 +0100 Subject: [PATCH] *Fix a bug which prevents eventhandlers and notifications to run as early as possible (this broke tests on windows) --- shinken/eventhandler.py | 2 +- shinken/notification.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shinken/eventhandler.py b/shinken/eventhandler.py index 532f4cc..ef85e46 100644 --- a/shinken/eventhandler.py +++ b/shinken/eventhandler.py @@ -117,7 +117,7 @@ class EventHandler(Action): def is_launchable(self, t): - return t > self.t_to_go + return t >= self.t_to_go def __str__(self): diff --git a/shinken/notification.py b/shinken/notification.py index 4e8587f..bfe7cc6 100644 --- a/shinken/notification.py +++ b/shinken/notification.py @@ -162,7 +162,7 @@ class Notification(Action): def is_launchable(self, t): - return t > self.t_to_go + return t >= self.t_to_go def is_administrative(self): -- 2.11.4.GIT