Skip to content

Commit

Permalink
Use -W flag on bsd variants in ping input (influxdata#5112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Thaller authored and otherpirate committed Mar 15, 2019
1 parent adba373 commit 42c060b
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 42c060b

Please sign in to comment.