add Deadline
This commit is contained in:
parent
e00fc95fdf
commit
edd380fabc
|
@ -56,8 +56,8 @@ func (ins *PingInstance) Init() error {
|
||||||
ins.calcTimeout = time.Duration(ins.Timeout) * time.Second
|
ins.calcTimeout = time.Duration(ins.Timeout) * time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
if ins.Deadline < 0 {
|
if ins.Deadline <= 0 {
|
||||||
ins.Deadline = 10
|
ins.Deadline = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
if ins.Interface != "" {
|
if ins.Interface != "" {
|
||||||
|
|
Loading…
Reference in New Issue