2006-06-19 Sancho Lerena <slerena@artica.es>

* 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
This commit is contained in:
slerena 2007-06-19 17:05:11 +00:00
parent 5f9b26d59e
commit 1e561dcdd7
1 changed files with 2 additions and 2 deletions

View File

@ -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