revert 7120; it was not a fix
This commit is contained in:
parent
f385cd4e02
commit
1619652997
|
@ -2509,7 +2509,7 @@ allocateBandwidth( tr_peerMgr * mgr,
|
||||||
countHandshakeBandwidth( t->outgoingHandshakes, direction );
|
countHandshakeBandwidth( t->outgoingHandshakes, direction );
|
||||||
|
|
||||||
/* remember this torrent's bytes used */
|
/* remember this torrent's bytes used */
|
||||||
tr_rcTransferred( t->tor->pieceSpeed[direction], used );
|
tr_rcTransferred( t->tor->rawSpeed[direction], used );
|
||||||
|
|
||||||
/* add this torrent's bandwidth use to allBytesUsed */
|
/* add this torrent's bandwidth use to allBytesUsed */
|
||||||
allBytesUsed += used;
|
allBytesUsed += used;
|
||||||
|
@ -2530,7 +2530,7 @@ allocateBandwidth( tr_peerMgr * mgr,
|
||||||
|
|
||||||
case TR_SPEEDLIMIT_SINGLE:
|
case TR_SPEEDLIMIT_SINGLE:
|
||||||
setPeerBandwidth( t->peers, direction,
|
setPeerBandwidth( t->peers, direction,
|
||||||
t->tor->pieceSpeed[direction],
|
t->tor->rawSpeed[direction],
|
||||||
tr_torrentGetSpeedLimit( t->tor, direction ) );
|
tr_torrentGetSpeedLimit( t->tor, direction ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue