Use 5 second timeout overhead when waiting for ping to complete
This commit is contained in:
parent
6ed5dc444d
commit
c49eda6810
|
@ -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