mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-08 17:06:05 +02:00
Correction of End Date
This commit is contained in:
parent
b7b9ab8a9f
commit
e1ec222832
@ -154,7 +154,7 @@ sub check_options {
|
||||
} else {
|
||||
my ($mday,$mon,$year) = split(/-/, $self->{option_results}->{'end_date'});
|
||||
$end = $self->{option_results}->{'end_date'};
|
||||
$self->{option_results}->{'end_date'} = timelocal(0,0,0,$mday+1,$mon-1,$year);
|
||||
$self->{option_results}->{'end_date'} = timelocal(59,59,23,$mday,$mon-1,$year);
|
||||
}
|
||||
}
|
||||
if (($self->{perfdata}->threshold_validate(label => 'warning', value => $self->{option_results}->{warning})) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user