1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

(trunk) add arg "percentDone" to RPC "torrentGet"

This commit is contained in:
Charles Kerr 2009-03-30 00:57:41 +00:00
parent 730dd0ec20
commit 5be5c803b9
2 changed files with 4 additions and 0 deletions

View file

@ -175,6 +175,7 @@
peersGettingFromUs | number | tr_stat
peersKnown | number | tr_stat
peersSendingToUs | number | tr_stat
percentDone | 'double' | tr_stat
pieces | string (see below) | tr_torrent
pieceCount | tnumber | tr_info
pieceSize | tnumber | tr_info
@ -457,6 +458,7 @@
| | yes | torrent-get | new arg "seedRatioLimit"
| | yes | torrent-get | new arg "seedRatioMode"
| | yes | torrent-get | new ids option "recently-active"
| | yes | torrent-get | new ids option "percentDone"
| | yes | | new method "torrent-reannounce"
| | NO | torrent-get | removed arg "downloadLimitMode"
| | NO | torrent-get | removed arg "uploadLimitMode"

View file

@ -445,6 +445,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, "percentDone" ) )
tr_bencDictAddReal( d, key, st->percentDone );
else if( !strcmp( key, "peer-limit" ) )
tr_bencDictAddInt( d, key, tr_torrentGetPeerLimit( tor ) );
else if( !strcmp( key, "peers" ) )