Skip to content

Commit

Permalink
fix: recv speed calc
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 5, 2023
1 parent 1caf27d commit 7fc6490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gold/link/listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (m *Me) listen() (conn *net.UDPConn, err error) {
i--
continue
}
recvtotlcnt += len(lbf)
recvtotlcnt += n
recvloopcnt++
if recvloopcnt >= 4096 {
now := time.Now().UnixMilli()
Expand Down

0 comments on commit 7fc6490

Please sign in to comment.