This commit is contained in:
crusader 2018-09-22 01:27:47 +09:00
parent 159f314307
commit d6825fdd2e

View File

@ -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 { if 0 == indexR {
summary.MinTime = elapsedTime summary.MinTime = elapsedTime
summary.MaxTime = elapsedTime summary.MaxTime = elapsedTime
@ -48,6 +48,7 @@ func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
summary.MaxTime = elapsedTime summary.MaxTime = elapsedTime
} }
_res.Time = elapsedTime _res.Time = elapsedTime
_res.TTL = ttl
} else { } else {
_res.Error = err.Error() _res.Error = err.Error()
} }