Skip to content

Commit

Permalink
Fix inconsistent configuration (specifically RecordRtts).
Browse files Browse the repository at this point in the history
Fixes #42.

Signed-off-by: Carl Kittelberger <[email protected]>
  • Loading branch information
icedream committed Jun 8, 2022
1 parent 05f1e00 commit 14c4a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ func main() {
level.Info(logger).Log("msg", "Pinger resolved", "host", host, "ip_addr", pinger.IPAddr())

pinger.Interval = *interval
pinger.Timeout = time.Duration(math.MaxInt64)
pinger.RecordRtts = false
pinger.SetPrivileged(*privileged)
pinger.Size = *sizeBytes
Expand All @@ -176,6 +175,7 @@ func main() {
for _, host = range targetGroup.Hosts {
pinger = ping.New(host)
pinger.Interval = targetGroup.Interval
pinger.RecordRtts = false
pinger.SetNetwork(targetGroup.Network)
pinger.Size = packetSize
if targetGroup.Protocol == "icmp" {
Expand Down

0 comments on commit 14c4a39

Please sign in to comment.