mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[#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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue