fix rpc `uploadRatio' field as reported by blueluna

This commit is contained in:
Charles Kerr 2008-07-15 03:26:01 +00:00
parent 04981e32c4
commit 92c42168ee
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {