From 1170367dd7c780d1df98ee1fcd74b8691769aa80 Mon Sep 17 00:00:00 2001 From: Alexander Thaller Date: Tue, 11 Dec 2018 01:20:04 +0100 Subject: [PATCH] Use -W flag on bsd variants in ping input (#5112) --- plugins/inputs/ping/ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/ping/ping.go b/plugins/inputs/ping/ping.go index 53c109d754db5..1d49cccc4551d 100644 --- a/plugins/inputs/ping/ping.go +++ b/plugins/inputs/ping/ping.go @@ -206,7 +206,7 @@ func (p *Ping) args(url string, system string) []string { case "darwin": args = append(args, "-W", strconv.FormatFloat(p.Timeout*1000, 'f', -1, 64)) case "freebsd", "netbsd", "openbsd": - args = append(args, "-w", strconv.FormatFloat(p.Timeout*1000, 'f', -1, 64)) + args = append(args, "-W", strconv.FormatFloat(p.Timeout*1000, 'f', -1, 64)) case "linux": args = append(args, "-W", strconv.FormatFloat(p.Timeout, 'f', -1, 64)) default: