1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk libT) small bandwidth patch from wereHamster

This commit is contained in:
Charles Kerr 2009-04-25 19:04:48 +00:00
parent 7f1fe69815
commit 94c1b90fe1
2 changed files with 3 additions and 1 deletions

View 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 ); dbgmsg( "peer #%d of %d used %d bytes in this pass", i, n, bytesUsed );
if( bytesUsed == (int)increment ) if( bytesUsed > 0 )
++i; ++i;
else { else {
/* peer is done writing for now; move it to the end of the list */ /* peer is done writing for now; move it to the end of the list */

View file

@ -1261,6 +1261,8 @@ request_exec( tr_session * session,
tr_benc * args_in = tr_bencDictFind( request, "arguments" ); tr_benc * args_in = tr_bencDictFind( request, "arguments" );
const char * result = NULL; const char * result = NULL;
fprintf( stderr, "got RPC request [%s]\n", tr_bencToJSON(request) );
if( callback == NULL ) if( callback == NULL )
callback = noop_response_callback; callback = noop_response_callback;