mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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:
parent
5f9b26d59e
commit
1e561dcdd7
@ -138,8 +138,8 @@ sub pandora_calcula_alerta (%$$$$$$) {
|
|||||||
my $ahora_min = &UnixDate("today","%M");
|
my $ahora_min = &UnixDate("today","%M");
|
||||||
|
|
||||||
# time check !
|
# time check !
|
||||||
if (((($ahora_hour * 60)+$ahora_min) >= ($alert_timefrom * 30)) &&
|
if ( (((($ahora_hour * 60)+$ahora_min) >= ($alert_timefrom * 30)) &&
|
||||||
((($ahora_hour * 60)+$ahora_min) <= ($alert_timeto * 30)) ) {
|
((($ahora_hour * 60)+$ahora_min) <= ($alert_timeto * 30))) || ($alert_timefrom == $alert_timeto)) {
|
||||||
my $comando ="";
|
my $comando ="";
|
||||||
logger($pa_config, "Found an alert defined for $nombre_modulo, its ID $id_alerta",4);
|
logger($pa_config, "Found an alert defined for $nombre_modulo, its ID $id_alerta",4);
|
||||||
# Here we process alert if conditions are ok
|
# Here we process alert if conditions are ok
|
||||||
|
Loading…
x
Reference in New Issue
Block a user