#665: Ratio calculations aren't strictly accurate when re-seeding a torrent

This commit is contained in:
Charles Kerr 2008-01-29 16:33:29 +00:00
parent 00a9df7291
commit 0f981db778
1 changed files with 2 additions and 1 deletions

View File

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