From 312d8321e6d5fe4228d6e0091ec9dba46b2e48b9 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 30 Mar 2017 16:14:37 +0200 Subject: [PATCH] + Fix warn message --- apps/protocols/dhcp/mode/connection.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/protocols/dhcp/mode/connection.pm b/apps/protocols/dhcp/mode/connection.pm index 7bdfb6140..9462b746c 100644 --- a/apps/protocols/dhcp/mode/connection.pm +++ b/apps/protocols/dhcp/mode/connection.pm @@ -206,8 +206,7 @@ sub result { $self->check_results(); $self->{output}->perfdata_add(label => "time", unit => 'ms', - value => sprintf('%.3f', $self->{timeelapsed})); - + value => sprintf('%.3f', $self->{timeelapsed})) if (defined($self->{timeelapsed})); } sub run {