Module: deluge
Branch: 1.3-stable
Commit: 1a9ae626693623273c7a48ff8c29037cd73c15b2

Author: Calum Lind <[email protected]>
Date:   Thu Jun 30 23:21:31 2011 +0100

Fix #1338 Seeds and Peers totals not updating

---

 deluge/core/torrent.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index 202e17d..09573ed 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -620,8 +620,8 @@ class Torrent(object):
             "total_done": self.status.total_done,
             "total_payload_download": self.status.total_payload_download,
             "total_payload_upload": self.status.total_payload_upload,
-            "total_peers": self.status.num_incomplete,
-            "total_seeds":  self.status.num_complete,
+            "total_peers": self.status.list_peers - self.status.list_seeds,
+            "total_seeds":  self.status.list_seeds,
             "total_uploaded": self.status.all_time_upload,
             "total_wanted": self.status.total_wanted,
             "tracker": self.status.current_tracker,

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to