Skip to content

Commit

Permalink
Update OpenSSHJunOSPing.pm
Browse files Browse the repository at this point in the history
Support parsing IPv6 output.
  • Loading branch information
zimage authored Apr 18, 2024
1 parent 89df55b commit d31f57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Smokeping/probes/OpenSSHJunOSPing.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d31f57f

Please sign in to comment.