Changeset 6113


Ignore:
Timestamp:
Jun 10, 2008, 1:46:36 AM (13 years ago)
Author:
charles
Message:

have idle webseeds return a speed of -1 instead of 0 so that we can differentiate between stalled and idle. document this in transmission.h.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r6112 r6113  
    14271427
    14281428    for( i=0; i<webseedCount; ++i )
    1429         tr_webseedGetSpeed( webseeds[i], &ret[i] );
     1429        if( !tr_webseedGetSpeed( webseeds[i], &ret[i] ) )
     1430            ret[i] = -1.0;
    14301431
    14311432    managerUnlock( manager );
  • trunk/libtransmission/transmission.h

    r6112 r6113  
    973973 *         Each speed in the array corresponds to the webseed at the same
    974974 *         array index in tor->info.webseeds.
     975 *         To differentiate "idle" and "stalled" status, idle webseeds will
     976 *         return -1 instead of 0 KiB/s.
    975977 *         NOTE: always free this array with tr_free() when you're done with it.
    976978 */
Note: See TracChangeset for help on using the changeset viewer.