From 14c4a3900b09bb0b6db348ab73361839aab1d39b Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Wed, 8 Jun 2022 11:16:27 +0200 Subject: [PATCH] Fix inconsistent configuration (specifically RecordRtts). Fixes #42. Signed-off-by: Carl Kittelberger --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 068cb7f..f20665d 100644 --- a/main.go +++ b/main.go @@ -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 @@ -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" {