Skip to content

Commit

Permalink
Use -W flag on bsd variants in ping input (#5112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Thaller authored and danielnelson committed Dec 11, 2018
1 parent 403a28d commit 1170367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1170367

Please sign in to comment.