Use 5 second timeout overhead when waiting for ping to complete
This commit is contained in:
parent
761544f56d
commit
61b0336d97
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue