mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-20 02:59:32 +00:00
change window calculation
This commit is contained in:
@@ -220,7 +220,7 @@ func (s *Mux) pingReturn() {
|
||||
case data = <-s.pingCh:
|
||||
atomic.StoreUint32(&s.pingCheckTime, 0)
|
||||
case <-s.closeChan:
|
||||
break
|
||||
return
|
||||
}
|
||||
_ = now.UnmarshalText(data)
|
||||
latency := time.Now().UTC().Sub(now).Seconds() / 2
|
||||
|
Reference in New Issue
Block a user