Use 5 second timeout overhead when waiting for ping to complete

This commit is contained in:
Daniel Nelson 2017-10-09 15:09:07 -07:00
parent 761544f56d
commit 61b0336d97
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

View File

@ -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
}