Change share ratio calculation to use the total done instead of the all time downloaded value. This change will make the share ratio calculation not use data downloaded in failed hash checks.

This commit is contained in:
Andrew Resch 2009-12-23 18:44:00 +00:00
parent ef2ca43c3d
commit 8e7d4f2cd4
1 changed files with 1 additions and 3 deletions

View File

@ -411,9 +411,7 @@ class Torrent:
else: else:
status = self.status status = self.status
if status.all_time_download > 0: if status.total_done > 0:
downloaded = status.all_time_download
elif status.total_done > 0:
# We use 'total_done' if the downloaded value is 0 # We use 'total_done' if the downloaded value is 0
downloaded = status.total_done downloaded = status.total_done
else: else: