1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-07 06:54:40 +00:00

(libT) possible fix for #1468: Speed display is very jumpy

This commit is contained in:
Charles Kerr 2008-11-16 17:47:42 +00:00
parent 97e4efaa4d
commit f385cd4e02

View file

@ -2509,7 +2509,7 @@ allocateBandwidth( tr_peerMgr * mgr,
countHandshakeBandwidth( t->outgoingHandshakes, direction );
/* remember this torrent's bytes used */
tr_rcTransferred( t->tor->rawSpeed[direction], used );
tr_rcTransferred( t->tor->pieceSpeed[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->rawSpeed[direction],
t->tor->pieceSpeed[direction],
tr_torrentGetSpeedLimit( t->tor, direction ) );
break;