2013-12-26 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed wrong time comparison in planned downtime. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9261 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7122e07a26
commit
aefd0694e5
|
@ -1,3 +1,8 @@
|
|||
2013-12-26 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* lib/PandoraFMS/Core.pm: Fixed wrong time comparison in planned
|
||||
downtime.
|
||||
|
||||
2013-11-26 KIKUCHI koichiro <koichiro@rworks.jp>
|
||||
|
||||
* util/pandora_remote_agent.sh: Added "-e" option to be able to
|
||||
|
|
|
@ -1455,7 +1455,7 @@ sub pandora_planned_downtime_monthly_start($$) {
|
|||
my $number_last_day_month = month_have_days($month, $year);
|
||||
|
||||
#my $time = $local_time->hms;
|
||||
my $time = $var_localtime[2] . ":" . $var_localtime[1] . ":" . $var_localtime[0];
|
||||
my $time = sprintf("%02d:%02d:%02d", $var_localtime[2], $var_localtime[1], $var_localtime[0]);
|
||||
|
||||
# Start pending downtimes
|
||||
my @downtimes = get_db_rows($dbh, 'SELECT *
|
||||
|
@ -1543,7 +1543,7 @@ sub pandora_planned_downtime_monthly_stop($$) {
|
|||
my $number_last_day_month = month_have_days($month, $year);
|
||||
|
||||
#my $time = $local_time->hms;
|
||||
my $time = $var_localtime[2] . ":" . $var_localtime[1] . ":" . $var_localtime[0];
|
||||
my $time = sprintf("%02d:%02d:%02d", $var_localtime[2], $var_localtime[1], $var_localtime[0]);
|
||||
|
||||
#With this stop the planned downtime for 31 (or 30) day in months
|
||||
# with less days.
|
||||
|
@ -1631,7 +1631,7 @@ sub pandora_planned_downtime_weekly_start($$) {
|
|||
my $number_day_week = $var_localtime[6];
|
||||
|
||||
#my $time = $local_time->hms;
|
||||
my $time = $var_localtime[2] . ":" . $var_localtime[1] . ":" . $var_localtime[0];
|
||||
my $time = sprintf("%02d:%02d:%02d", $var_localtime[2], $var_localtime[1], $var_localtime[0]);
|
||||
|
||||
my $found = 0;
|
||||
|
||||
|
@ -1732,7 +1732,7 @@ sub pandora_planned_downtime_weekly_stop($$) {
|
|||
my $number_day_week = $var_localtime[6];
|
||||
|
||||
#my $time = $local_time->hms;
|
||||
my $time = $var_localtime[2] . ":" . $var_localtime[1] . ":" . $var_localtime[0];
|
||||
my $time = sprintf("%02d:%02d:%02d", $var_localtime[2], $var_localtime[1], $var_localtime[0]);
|
||||
|
||||
my $found = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue