+ Fix uninitialized value in interface mode

This commit is contained in:
garnier-quentin 2017-03-19 22:01:43 +01:00
parent b7426a93cb
commit f373e56e3b
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ sub custom_traffic_perfdata {
}
if (defined($instance_mode->{option_results}->{nagvis_perfdata})) {
$self->{result_values}->{traffic_per_seconds} /= 8;
$self->{result_values}->{speed} /= 8;
$self->{result_values}->{speed} /= 8 if (defined($self->{result_values}->{speed}));
}
my ($warning, $critical);