[#2848|Core] Fix incorrect share ratio in torrent status

* Use total_wanted_done to increase the accuracy of the calculated ratio.
This commit is contained in:
Calum Lind 2017-06-27 19:01:58 +01:00
parent 51bde704b5
commit 7b87a93862
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ class Torrent(object):
""" """
if self.status.total_done > 0: if self.status.total_done > 0:
return self.status.all_time_upload / self.status.total_done return self.status.all_time_upload / self.status.total_wanted_done
else: else:
return -1.0 return -1.0