From ad28a6d0160b0941290069651604b47ec9bb55b9 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Fri, 28 Feb 2014 11:01:50 +0100 Subject: [PATCH] Fix uptime --- centreon-plugins/snmp_standard/mode/uptime.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();