diff --git a/centreon-plugins/snmp_standard/mode/uptime.pm b/centreon-plugins/snmp_standard/mode/uptime.pm index 24e6401c6..b2cd95ec0 100644 --- a/centreon-plugins/snmp_standard/mode/uptime.pm +++ b/centreon-plugins/snmp_standard/mode/uptime.pm @@ -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();