add Deadline

This commit is contained in:
Ulric Qin 2022-04-19 18:47:05 +08:00
parent e00fc95fdf
commit edd380fabc
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ func (ins *PingInstance) Init() error {
ins.calcTimeout = time.Duration(ins.Timeout) * time.Second
}
if ins.Deadline < 0 {
ins.Deadline = 10
if ins.Deadline <= 0 {
ins.Deadline = 5
}
if ins.Interface != "" {