From 7b87a93862bae5bcb53d4134a111a308ec36f9e8 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 27 Jun 2017 19:01:58 +0100 Subject: [PATCH] [#2848|Core] Fix incorrect share ratio in torrent status * Use total_wanted_done to increase the accuracy of the calculated ratio. --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index ac37dec36..d5617317f 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -716,7 +716,7 @@ class Torrent(object): """ 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: return -1.0