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:
parent
7f1fe69815
commit
94c1b90fe1
2 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue