From 114e6b3626ddf1bff0edf2c4cf0d32da4d0787d3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 25 Apr 2009 19:22:27 +0000 Subject: [PATCH] undo r8288 --- libtransmission/bandwidth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/bandwidth.c b/libtransmission/bandwidth.c index 21629c121..4672cfdde 100644 --- a/libtransmission/bandwidth.c +++ b/libtransmission/bandwidth.c @@ -217,7 +217,7 @@ phaseOne( tr_ptrArray * peerArray, tr_direction dir ) dbgmsg( "peer #%d of %d used %d bytes in this pass", i, n, bytesUsed ); - if( bytesUsed > 0 ) + if( bytesUsed == (int)increment ) ++i; else { /* peer is done writing for now; move it to the end of the list */