Changeset 9929


Ignore:
Timestamp:
Jan 14, 2010, 12:25:03 AM (12 years ago)
Author:
livings124
Message:

add to RPC info for peers from DHT and LTEP

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/rpc-spec.txt

    r9928 r9929  
    230230                      +-------------------------+------------+
    231231                      | fromCache               | number     | tr_stat
     232                      | fromDht                 | number     | tr_stat
    232233                      | fromIncoming            | number     | tr_stat
     234                      | fromLtep                | number     | tr_stat
    233235                      | fromPex                 | number     | tr_stat
    234236                      | fromTracker             | number     | tr_stat
  • trunk/libtransmission/rpcimpl.c

    r9928 r9929  
    522522    else if( tr_streq( key, keylen, "peersFrom" ) )
    523523    {
    524         tr_benc *   tmp = tr_bencDictAddDict( d, key, 4 );
     524        tr_benc *   tmp = tr_bencDictAddDict( d, key, 6 );
    525525        const int * f = st->peersFrom;
    526526        tr_bencDictAddInt( tmp, "fromCache",    f[TR_PEER_FROM_RESUME] );
     527        tr_bencDictAddInt( tmp, "fromDht",      f[TR_PEER_FROM_DHT] );
    527528        tr_bencDictAddInt( tmp, "fromIncoming", f[TR_PEER_FROM_INCOMING] );
     529        tr_bencDictAddInt( tmp, "fromLtep",     f[TR_PEER_FROM_LTEP] );
    528530        tr_bencDictAddInt( tmp, "fromPex",      f[TR_PEER_FROM_PEX] );
    529531        tr_bencDictAddInt( tmp, "fromTracker",  f[TR_PEER_FROM_TRACKER] );
Note: See TracChangeset for help on using the changeset viewer.