优化 TCPPing 延迟统计精度 (#76)
This commit is contained in:
parent
765f7d9c34
commit
134c8c5acb
@ -495,7 +495,7 @@ func handleTcpPingTask(task *pb.Task, result *pb.TaskResult) {
|
||||
result.Data = err.Error()
|
||||
} else {
|
||||
conn.Close()
|
||||
result.Delay = float32(time.Since(start).Milliseconds())
|
||||
result.Delay = float32(time.Since(start).Microseconds()) / 1000.0
|
||||
result.Successful = true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user