Skip to content

Commit 3bb6169

Browse files
committed
SendClock sz calc fixed
1 parent 8a284ee commit 3bb6169

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

adnl/rldp/client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,11 +1059,9 @@ func (t *activeTransfer) prepareNextPart() (bool, error) {
10591059
transfer: t,
10601060
}
10611061

1062-
pt := uint32(1) << uint32(math.Ceil(math.Log2(float64(part.fecSymbolsCount)*1.5)+50))
1062+
pt := uint32(1) << uint32(math.Ceil(math.Log2(float64(part.fecSymbolsCount)*3+50)))
10631063
if pt > 16<<10 {
10641064
pt = 16 << 10
1065-
} else if pt < 64 {
1066-
pt = 64
10671065
}
10681066
part.sendClock = NewSendClock(int(pt))
10691067

0 commit comments

Comments
 (0)