[#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:
parent
51bde704b5
commit
7b87a93862
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue