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:
parent
730dd0ec20
commit
5be5c803b9
2 changed files with 4 additions and 0 deletions
|
@ -175,6 +175,7 @@
|
||||||
peersGettingFromUs | number | tr_stat
|
peersGettingFromUs | number | tr_stat
|
||||||
peersKnown | number | tr_stat
|
peersKnown | number | tr_stat
|
||||||
peersSendingToUs | number | tr_stat
|
peersSendingToUs | number | tr_stat
|
||||||
|
percentDone | 'double' | tr_stat
|
||||||
pieces | string (see below) | tr_torrent
|
pieces | string (see below) | tr_torrent
|
||||||
pieceCount | tnumber | tr_info
|
pieceCount | tnumber | tr_info
|
||||||
pieceSize | tnumber | tr_info
|
pieceSize | tnumber | tr_info
|
||||||
|
@ -457,6 +458,7 @@
|
||||||
| | yes | torrent-get | new arg "seedRatioLimit"
|
| | yes | torrent-get | new arg "seedRatioLimit"
|
||||||
| | yes | torrent-get | new arg "seedRatioMode"
|
| | yes | torrent-get | new arg "seedRatioMode"
|
||||||
| | yes | torrent-get | new ids option "recently-active"
|
| | yes | torrent-get | new ids option "recently-active"
|
||||||
|
| | yes | torrent-get | new ids option "percentDone"
|
||||||
| | yes | | new method "torrent-reannounce"
|
| | yes | | new method "torrent-reannounce"
|
||||||
| | NO | torrent-get | removed arg "downloadLimitMode"
|
| | NO | torrent-get | removed arg "downloadLimitMode"
|
||||||
| | NO | torrent-get | removed arg "uploadLimitMode"
|
| | NO | torrent-get | removed arg "uploadLimitMode"
|
||||||
|
|
|
@ -445,6 +445,8 @@ addField( const tr_torrent * tor,
|
||||||
tr_bencDictAddInt( d, key, st->nextAnnounceTime );
|
tr_bencDictAddInt( d, key, st->nextAnnounceTime );
|
||||||
else if( !strcmp( key, "nextScrapeTime" ) )
|
else if( !strcmp( key, "nextScrapeTime" ) )
|
||||||
tr_bencDictAddInt( d, key, st->nextScrapeTime );
|
tr_bencDictAddInt( d, key, st->nextScrapeTime );
|
||||||
|
else if( !strcmp( key, "percentDone" ) )
|
||||||
|
tr_bencDictAddReal( d, key, st->percentDone );
|
||||||
else if( !strcmp( key, "peer-limit" ) )
|
else if( !strcmp( key, "peer-limit" ) )
|
||||||
tr_bencDictAddInt( d, key, tr_torrentGetPeerLimit( tor ) );
|
tr_bencDictAddInt( d, key, tr_torrentGetPeerLimit( tor ) );
|
||||||
else if( !strcmp( key, "peers" ) )
|
else if( !strcmp( key, "peers" ) )
|
||||||
|
|
Loading…
Reference in a new issue