1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-13 05:16:46 +08:00

fix: recv speed calc

This commit is contained in:
源文雨
2023-08-05 14:04:22 +08:00
parent 1caf27dfa9
commit 7fc649084e

View File

@@ -55,7 +55,7 @@ func (m *Me) listen() (conn *net.UDPConn, err error) {
i-- i--
continue continue
} }
recvtotlcnt += len(lbf) recvtotlcnt += n
recvloopcnt++ recvloopcnt++
if recvloopcnt >= 4096 { if recvloopcnt >= 4096 {
now := time.Now().UnixMilli() now := time.Now().UnixMilli()