1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk rpc) add peer-limit to torrent-get

This commit is contained in:
Charles Kerr 2009-03-27 12:05:41 +00:00
parent ea7c0b46bf
commit bed0681dd9
2 changed files with 3 additions and 0 deletions

View file

@ -167,6 +167,7 @@
name | string | tr_info
nextAnnounceTime | number | tr_stat
nextScrapeTime | number | tr_stat
peer-limit | number | tr_torrent
peers | array (see below) | n/a
peersConnected | number | tr_stat
peersFrom | object (see below) | n/a

View file

@ -448,6 +448,8 @@ addField( const tr_torrent * tor,
tr_bencDictAddInt( d, key, st->nextAnnounceTime );
else if( !strcmp( key, "nextScrapeTime" ) )
tr_bencDictAddInt( d, key, st->nextScrapeTime );
else if( !strcmp( key, "peer-limit" ) )
tr_bencDictAddInt( d, key, tr_torrentGetPeerLimit( tor ) );
else if( !strcmp( key, "peers" ) )
addPeers( tor, tr_bencDictAdd( d, key ) );
else if( !strcmp( key, "peersConnected" ) )