From d31f57f1bec3005fb51a4613cfa4e1770a5e6f51 Mon Sep 17 00:00:00 2001 From: Tim Nowaczyk Date: Thu, 18 Apr 2024 14:34:25 -0400 Subject: [PATCH] Update OpenSSHJunOSPing.pm Support parsing IPv6 output. --- lib/Smokeping/probes/OpenSSHJunOSPing.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Smokeping/probes/OpenSSHJunOSPing.pm b/lib/Smokeping/probes/OpenSSHJunOSPing.pm index 92b5b51d..ecde9c94 100644 --- a/lib/Smokeping/probes/OpenSSHJunOSPing.pm +++ b/lib/Smokeping/probes/OpenSSHJunOSPing.pm @@ -124,7 +124,7 @@ sub pingone ($$){ my @times = (); for (@output){ chomp; - /^\d+ bytes from \S+: icmp_seq=\d+ ttl=\d+ time=(\d+\.\d+) ms$/ and push @times,$1; + /^\d+ bytes from \S+[:,] icmp_seq=\d+ (?:ttl|hlim)=\d+ time=(\d+\.\d+) ms$/ and push @times,$1; } @times = map {sprintf "%.10e", $_ / $self->{pingfactor}} sort {$a <=> $b} @times; return @times;