mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +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,7 +773,8 @@ tr_torrentStat( tr_torrent * tor )
|
||||||
tr_bitfieldFree( available );
|
tr_bitfieldFree( available );
|
||||||
}
|
}
|
||||||
|
|
||||||
s->ratio = s->downloadedEver ? s->uploadedEver / (float)s->downloadedEver
|
s->ratio = ( s->downloadedEver || s->haveValid )
|
||||||
|
? s->uploadedEver / (float)(MAX(s->downloadedEver,s->haveValid))
|
||||||
: TR_RATIO_NA;
|
: TR_RATIO_NA;
|
||||||
|
|
||||||
tr_torrentUnlock( tor );
|
tr_torrentUnlock( tor );
|
||||||
|
|
Loading…
Reference in a new issue