From 81e8e4a76184f692f92612fee8391a7245a96f2a Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 19 Jun 2007 17:05:11 +0000 Subject: [PATCH] 2006-06-19 Sancho Lerena * DB.pm: Fixed detail from last commit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/bin/PandoraFMS/DB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/bin/PandoraFMS/DB.pm b/pandora_server/bin/PandoraFMS/DB.pm index def8aed7d8..2848083672 100644 --- a/pandora_server/bin/PandoraFMS/DB.pm +++ b/pandora_server/bin/PandoraFMS/DB.pm @@ -138,8 +138,8 @@ sub pandora_calcula_alerta (%$$$$$$) { my $ahora_min = &UnixDate("today","%M"); # time check ! - if (((($ahora_hour * 60)+$ahora_min) >= ($alert_timefrom * 30)) && - ((($ahora_hour * 60)+$ahora_min) <= ($alert_timeto * 30)) ) { + if ( (((($ahora_hour * 60)+$ahora_min) >= ($alert_timefrom * 30)) && + ((($ahora_hour * 60)+$ahora_min) <= ($alert_timeto * 30))) || ($alert_timefrom == $alert_timeto)) { my $comando =""; logger($pa_config, "Found an alert defined for $nombre_modulo, its ID $id_alerta",4); # Here we process alert if conditions are ok