From 75b7799c2e460583e060553651561970a09ec414 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 12 Nov 2024 02:41:42 +0200 Subject: [PATCH] Fix virtual and special-purpose interfaces --- stats-lib-funcs.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/stats-lib-funcs.pl b/stats-lib-funcs.pl index 94e2619a2..0db03034b 100644 --- a/stats-lib-funcs.pl +++ b/stats-lib-funcs.pl @@ -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];