From c16d64ba641e1669c01194ef68eae3ea838cee51 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Thu, 4 Oct 2012 04:55:06 +0000 Subject: [PATCH] 2012-10-04 Junichi Satoh * lib/PandoraFMS/Core.pm: Fixed unexpected execution with monthly planned downtime. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7041 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/Core.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 6a49f4258c..72e6d370db 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2012-10-04 Junichi Satoh + + * lib/PandoraFMS/Core.pm: Fixed unexpected execution with monthly + planned downtime. + 2012-10-03 Vanessa Gil * util/tool_api.pl: Changed format for creating events using API. diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 895cb9d3a3..2a49810475 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1373,7 +1373,7 @@ sub pandora_planned_downtime_monthly_start($$) { FROM tplanned_downtime WHERE type_periodicity="monthly" AND executed = 0 - AND periodically_day_from >= ?', $number_day_month); + AND periodically_day_from <= ?', $number_day_month); foreach my $downtime (@downtimes) { #Convert to identical type.