]> granicus.if.org Git - transmission/commitdiff
undo r8288
authorCharles Kerr <charles@transmissionbt.com>
Sat, 25 Apr 2009 19:22:27 +0000 (19:22 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sat, 25 Apr 2009 19:22:27 +0000 (19:22 +0000)
libtransmission/bandwidth.c

index 21629c121f2c0a6bff386fa4c3c445a66c6434c6..4672cfdde030bb110a66958fe7a9235e267bd838 100644 (file)
@@ -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 */