mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
fix rpc `uploadRatio' field as reported by blueluna
This commit is contained in:
parent
04981e32c4
commit
92c42168ee
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ addInfo( const tr_torrent * tor, tr_benc * d, uint64_t fields )
|
|||
tr_bencDictAddInt( d, "status", st->status );
|
||||
tr_bencDictAddInt( d, "swarmSpeed", (int)(st->swarmSpeed*1024) );
|
||||
tr_bencDictAddInt( d, "webseedsSendingToUs", st->webseedsSendingToUs );
|
||||
tr_bencDictAddDouble( d, "uploadRatio", tr_getRatio( st->uploadedEver, st->downloadedEver ) );
|
||||
}
|
||||
|
||||
if( fields & TR_RPC_TORRENT_ANNOUNCE ) {
|
||||
|
|
Loading…
Reference in a new issue