diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 8c939c382..eacec9bb4 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -2509,7 +2509,7 @@ allocateBandwidth( tr_peerMgr * mgr, countHandshakeBandwidth( t->outgoingHandshakes, direction ); /* 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 */ allBytesUsed += used; @@ -2530,7 +2530,7 @@ allocateBandwidth( tr_peerMgr * mgr, case TR_SPEEDLIMIT_SINGLE: setPeerBandwidth( t->peers, direction, - t->tor->pieceSpeed[direction], + t->tor->rawSpeed[direction], tr_torrentGetSpeedLimit( t->tor, direction ) ); break;