Skip to content

Commit

Permalink
Fix virtual and special-purpose interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Nov 12, 2024
1 parent e95d9db commit 75b7799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stats-lib-funcs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ sub stats_network_netstat
next if $. == 1; # Skip header
my @fields = split;
my $iface = $fields[0];
next if $iface =~ /\*$/;
my $ibytes = $fields[-5];
my $obytes = $fields[-2];
$stats{$iface} = [$ibytes, $obytes];
Expand Down

0 comments on commit 75b7799

Please sign in to comment.