revert 7120; it was not a fix

This commit is contained in:
Charles Kerr 2008-11-16 21:15:37 +00:00
parent f385cd4e02
commit 1619652997
1 changed files with 2 additions and 2 deletions

View File

@ -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;