From f385cd4e027b4e1d4990329bb9a8479b9bbb9d3a Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 16 Nov 2008 17:47:42 +0000 Subject: [PATCH] (libT) possible fix for #1468: Speed display is very jumpy --- libtransmission/peer-mgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index eacec9bb4..8c939c382 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->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;