Skip to content

Commit

Permalink
Sometimes Linux ping prints pipe 2 in output. Parse it in netlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Aug 23, 2024
1 parent fb661be commit ae5d80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ sub pingflood_parser {
print $tr "SUBVALUE $2 packet receive\n";
print $tr "SUBVALUE $pingflood_loss percent loss\n";
}
if ($line =~ m{^rtt min/avg/max/mdev = ([\.\d]+)/([\.\d]+)/([\.\d]+)/([\.\d]+) ms, ipg/ewma ([\.\d]+)/([\.\d]+) ms$}) {
if ($line =~ m{^rtt min/avg/max/mdev = ([\.\d]+)/([\.\d]+)/([\.\d]+)/([\.\d]+) ms, (:?pipe \d+, )?ipg/ewma ([\.\d]+)/([\.\d]+) ms$}) {
print $tr "SUBVALUE $1 ms min\n";
print $tr "VALUE $2 ms avg\n";
print $tr "VALUE $3 ms max\n";
Expand Down

0 comments on commit ae5d80d

Please sign in to comment.