Skip to content

Commit

Permalink
Merge pull request #5 from mattmichal/fix-failed-icmp-droprate
Browse files Browse the repository at this point in the history
droprate is a 0-1 scale; use 1.0 for failure
  • Loading branch information
syepes authored Jul 29, 2021
2 parents cb5e376 + 965d244 commit c6f8aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func runPing(ipAddr string, icmpID int, option *PingOptions) (pingResult PingRes

if !pingReturn.success {
pingResult.Success = false
pingResult.DropRate = 100.0
pingResult.DropRate = 1.0
return pingResult
}

Expand Down

0 comments on commit c6f8aee

Please sign in to comment.