#665: Ratio calculations aren't strictly accurate when re-seeding a torrent
This commit is contained in:
parent
00a9df7291
commit
0f981db778
|
@ -660,7 +660,8 @@ tr_torrentStat( tr_torrent * tor )
|
|||
tr_bitfieldFree( availablePieces );
|
||||
}
|
||||
|
||||
s->ratio = tr_getRatio( s->uploadedEver, MAX( s->downloadedEver, s->haveValid ) );
|
||||
s->ratio = tr_getRatio( s->uploadedEver,
|
||||
s->downloadedEver ? s->downloadedEver : s->haveValid );
|
||||
|
||||
tr_torrentUnlock( tor );
|
||||
|
||||
|
|
Loading…
Reference in New Issue