mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
UDT: Fix another critical new bug in getRcvSpeeds. CC #43
This commit is contained in:
@@ -453,7 +453,7 @@ func (s *udtSocketRecv) getRcvSpeeds() (recvSpeed, bandwidth int) {
|
||||
}
|
||||
|
||||
// get median value, but cannot change the original value order in the window
|
||||
if s.recvPktPairHistory == nil {
|
||||
if s.recvPktPairHistory != nil {
|
||||
ourProbeHistory := make(sortableDurnArray, len(s.recvPktPairHistory))
|
||||
copy(ourProbeHistory, s.recvPktPairHistory)
|
||||
n := len(ourProbeHistory)
|
||||
|
||||
Reference in New Issue
Block a user