mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
when seeding, instead of giving the the ratio as N/A, give uploaded/torrent_size (Waldorf_)
This commit is contained in:
parent
78b5c81253
commit
6a3a61716b
1 changed files with 3 additions and 2 deletions
|
@ -773,8 +773,9 @@ tr_torrentStat( tr_torrent * tor )
|
|||
tr_bitfieldFree( available );
|
||||
}
|
||||
|
||||
s->ratio = s->downloadedEver ? s->uploadedEver / (float)s->downloadedEver
|
||||
: TR_RATIO_NA;
|
||||
s->ratio = ( s->downloadedEver || s->haveValid )
|
||||
? s->uploadedEver / (float)(MAX(s->downloadedEver,s->haveValid))
|
||||
: TR_RATIO_NA;
|
||||
|
||||
tr_torrentUnlock( tor );
|
||||
|
||||
|
|
Loading…
Reference in a new issue