os::linux::local - mode traffic fix regexp (#3823)

This commit is contained in:
qgarnier 2022-08-10 16:25:36 +02:00 committed by GitHub
parent d794319137
commit 394f827f58
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ sub do_selection {
};
# ip addr patterns
if ($values =~ /RX:\s+bytes.*?(\d+).*?TX: bytes.*?(\d+)/msi) {
if ($values =~ /RX:\s+bytes.*?(\d+).*?TX:\s+bytes.*?(\d+)/msi) {
$self->{interface}->{$interface_name}->{in} = $1;
$self->{interface}->{$interface_name}->{out} = $2;
} elsif ($values =~ /RX bytes:(\S+).*?TX bytes:(\S+)/msi || $values =~ /RX packets\s+\d+\s+bytes\s+(\S+).*?TX packets\s+\d+\s+bytes\s+(\S+)/msi) {