ing
This commit is contained in:
parent
159f314307
commit
d6825fdd2e
|
@ -32,7 +32,7 @@ func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
|
|||
}
|
||||
}
|
||||
|
||||
_, elapsedTime, err := sendPing(service, pingOption)
|
||||
ttl, elapsedTime, err := sendPing(service, pingOption)
|
||||
if 0 == indexR {
|
||||
summary.MinTime = elapsedTime
|
||||
summary.MaxTime = elapsedTime
|
||||
|
@ -48,6 +48,7 @@ func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
|
|||
summary.MaxTime = elapsedTime
|
||||
}
|
||||
_res.Time = elapsedTime
|
||||
_res.TTL = ttl
|
||||
} else {
|
||||
_res.Error = err.Error()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user