Fix uptime

This commit is contained in:
Kevin Duret 2014-02-28 11:01:50 +01:00
parent f4be096db5
commit ce055b968b
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ sub run {
$self->{output}->output_add(severity => $exit_code,
short_msg => sprintf("System uptime is: %s",
defined($self->{option_results}->{seconds}) ? floor($value / 100) . " seconds" : floor($result->{$value / 86400 / 100) . " days" ));
defined($self->{option_results}->{seconds}) ? floor($value / 100) . " seconds" : floor($result->{$value} / 86400 / 100) . " days" ));
$self->{output}->display();
$self->{output}->exit();