ing
This commit is contained in:
parent
d615ab9524
commit
4cefb48143
|
@ -2,7 +2,6 @@ package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
@ -48,7 +47,7 @@ func processPing(service *omd.Service, pingOption ounp.Option, _pingFunc pingFun
|
||||||
for indexR := 0; indexR < pingOption.GetCount(); indexR++ {
|
for indexR := 0; indexR < pingOption.GetCount(); indexR++ {
|
||||||
summary.SendCount = summary.SendCount + 1
|
summary.SendCount = summary.SendCount + 1
|
||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
log.Print("startTime ", startTime)
|
|
||||||
_res = &ounp.PingResponse{}
|
_res = &ounp.PingResponse{}
|
||||||
if 0 < indexR {
|
if 0 < indexR {
|
||||||
select {
|
select {
|
||||||
|
@ -58,7 +57,6 @@ func processPing(service *omd.Service, pingOption ounp.Option, _pingFunc pingFun
|
||||||
|
|
||||||
ttl, err := _pingFunc(service, pingOption)
|
ttl, err := _pingFunc(service, pingOption)
|
||||||
elapsedTime := float64(time.Since(startTime).Nanoseconds()) / float64(1E6)
|
elapsedTime := float64(time.Since(startTime).Nanoseconds()) / float64(1E6)
|
||||||
log.Print("elapsedTime ", time.Since(startTime).Nanoseconds())
|
|
||||||
|
|
||||||
if 0 == indexR {
|
if 0 == indexR {
|
||||||
summary.MinTime = elapsedTime
|
summary.MinTime = elapsedTime
|
||||||
|
|
Loading…
Reference in New Issue
Block a user