Use 5 second timeout overhead when waiting for ping to complete
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user