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 {