fix process aix local
This commit is contained in:
parent
5dbf297eb8
commit
eb5e5f87ea
|
@ -140,8 +140,10 @@ sub run {
|
|||
}
|
||||
|
||||
$self->manage_selection();
|
||||
$self->{output}->output_add(severity => 'OK',
|
||||
short_msg => sprintf("No error found%s.", $extra_message));
|
||||
$self->{output}->output_add(
|
||||
severity => 'OK',
|
||||
short_msg => sprintf("No error found%s.", $extra_message)
|
||||
);
|
||||
|
||||
my $total_error = 0;
|
||||
foreach my $errpt_error (sort(keys %{$self->{result}})) {
|
||||
|
@ -173,8 +175,10 @@ sub run {
|
|||
}
|
||||
|
||||
if ($total_error != 0) {
|
||||
$self->{output}->output_add(severity => 'critical',
|
||||
short_msg => sprintf("%s error(s) found(s)%s", $total_error, $extra_message));
|
||||
$self->{output}->output_add(
|
||||
severity => 'critical',
|
||||
short_msg => sprintf("%s error(s) found(s)%s", $total_error, $extra_message)
|
||||
);
|
||||
}
|
||||
|
||||
$self->{output}->display();
|
||||
|
|
|
@ -129,6 +129,10 @@ sub get_time_seconds {
|
|||
my $total_seconds_elapsed = $seconds + ($min * 60);
|
||||
if (defined($lpart)) {
|
||||
my ($day, $hour) = split /-/, $lpart;
|
||||
if (!defined($hour)) {
|
||||
$hour = $day;
|
||||
$day = undef;
|
||||
}
|
||||
if (defined($hour)) {
|
||||
$total_seconds_elapsed += ($hour * 60 * 60);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue