Skip to content

Commit

Permalink
Use 5 second timeout overhead when waiting for ping to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Oct 9, 2017
1 parent 761544f commit 61b0336
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 @@ -145,7 +145,7 @@ func hostPinger(timeout float64, args ...string) (string, error) {
}
c := exec.Command(bin, args...)
out, err := internal.CombinedOutputTimeout(c,
time.Second*time.Duration(timeout+1))
time.Second*time.Duration(timeout+5))
return string(out), err
}

Expand Down

0 comments on commit 61b0336

Please sign in to comment.