Changeset 12086


Ignore:
Timestamp:
Mar 4, 2011, 4:50:50 AM (11 years ago)
Author:
jordan
Message:

(trunk) #4072 "remove the 'know peer count' field in Inspector" -- remove it from libtransmission too

Location:
trunk
Files:
6 edited

Legend:

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

    r11969 r12086  
    174174   peersFrom                   | object (see below)          | n/a
    175175   peersGettingFromUs          | number                      | tr_stat
    176    peersKnown                  | number                      | tr_stat
    177176   peersSendingToUs            | number                      | tr_stat
    178177   percentDone                 | double                      | tr_stat
     
    657656   ------+---------+-----------+----------------+-------------------------------
    658657   13    | 2.30    | yes       | session-get    | new arg "isUTP" to the "peers" list
     658         |         |        NO | torrent-get    | reomved arg "peersKnown"
  • trunk/libtransmission/peer-mgr.c

    r12084 r12086  
    25452545void
    25462546tr_peerMgrTorrentStats( tr_torrent  * tor,
    2547                         int         * setmePeersKnown,
    25482547                        int         * setmePeersConnected,
    25492548                        int         * setmeSeedsConnected,
     
    25622561    size = tr_ptrArraySize( &t->peers );
    25632562
    2564     *setmePeersKnown           = tr_ptrArraySize( &t->pool );
    25652563    *setmePeersConnected       = 0;
    25662564    *setmeSeedsConnected       = 0;
  • trunk/libtransmission/peer-mgr.h

    r12074 r12086  
    241241
    242242void tr_peerMgrTorrentStats( tr_torrent * tor,
    243                              int * setmePeersKnown,
    244243                             int * setmePeersConnected,
    245244                             int * setmeSeedsConnected,
  • trunk/libtransmission/rpcimpl.c

    r12012 r12086  
    557557    else if( tr_streq( key, keylen, "peersGettingFromUs" ) )
    558558        tr_bencDictAddInt( d, key, st->peersGettingFromUs );
    559     else if( tr_streq( key, keylen, "peersKnown" ) )
    560         tr_bencDictAddInt( d, key, st->peersKnown );
    561559    else if( tr_streq( key, keylen, "peersSendingToUs" ) )
    562560        tr_bencDictAddInt( d, key, st->peersSendingToUs );
  • trunk/libtransmission/torrent.c

    r12074 r12086  
    11611161
    11621162    tr_peerMgrTorrentStats( tor,
    1163                             &s->peersKnown,
    11641163                            &s->peersConnected,
    11651164                            &usableSeeds,
  • trunk/libtransmission/transmission.h

    r12012 r12086  
    18051805    int    etaIdle;
    18061806
    1807     /** Number of peers that the tracker says this torrent has */
    1808     int    peersKnown;
    1809 
    18101807    /** Number of peers that we're connected to */
    18111808    int    peersConnected;
Note: See TracChangeset for help on using the changeset viewer.