Skip to content

Commit

Permalink
Fix warning in netlink html.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Aug 23, 2024
1 parent cb8338d commit 0c5d21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlink-html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ sub html_hier_test_row_utilization {
or next;
for (my $i = 0; $i < $maxval; $i++) {
my $value0 = first { $_ } map { $_->[$i] } values %$vt;
if ($value0->{name} eq "recv" || $maxval == 1) {
if ($value0 && $value0->{name} eq "recv" || $maxval == 1) {
my $vv = $vt->{$hv->{key}};
$valsum += $vv->[$i]{number};
}
Expand Down

0 comments on commit 0c5d21a

Please sign in to comment.