Changeset 9904


Ignore:
Timestamp:
Jan 10, 2010, 4:23:09 AM (12 years ago)
Author:
livings124
Message:

add rpc fields for the tracker identifier stats

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r9902 r9904  
    272272        int       i, j, validTiers;
    273273        const int numTiers = tr_bencListSize( tiers );
    274         uint32_t  trackerId = 0;
    275274
    276275        n = 0;
  • trunk/libtransmission/rpcimpl.c

    r9902 r9904  
    360360    {
    361361        const tr_tracker_info * t = &info->trackers[i];
    362         tr_benc *               d = tr_bencListAddDict( trackers, 3 );
     362        tr_benc *               d = tr_bencListAddDict( trackers, 4 );
    363363        tr_bencDictAddStr( d, "announce", t->announce );
     364        tr_bencDictAddInt( d, "identifier", t->identifier );
    364365        tr_bencDictAddStr( d, "scrape", t->scrape );
    365366        tr_bencDictAddInt( d, "tier", t->tier );
    366         tr_bencDictAddInt( d, "id", t->identifier );
    367367    }
    368368}
     
    376376    {
    377377        const tr_tracker_stat * s = &st[i];
    378         tr_benc * d = tr_bencListAddDict( list, 22 );
     378        tr_benc * d = tr_bencListAddDict( list, 23 );
    379379        tr_bencDictAddStr ( d, "announce", s->announce );
    380380        tr_bencDictAddInt ( d, "announceState", s->announceState );
     
    383383        tr_bencDictAddBool( d, "hasScraped", s->hasScraped );
    384384        tr_bencDictAddStr ( d, "host", s->host );
     385        tr_bencDictAddInt ( d, "identifier", s->identifier );
    385386        tr_bencDictAddBool( d, "isBackup", s->isBackup );
    386387        tr_bencDictAddInt ( d, "lastAnnouncePeerCount", s->lastAnnouncePeerCount );
Note: See TracChangeset for help on using the changeset viewer.