From 5b7b027f4888abaee4ab11e64b2c025eb1579392 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 15 Oct 2007 01:56:47 +0000 Subject: [PATCH] Save the uploaded_total in torrent state. --- 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 9f2935360..6c1b9f903 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -62,7 +62,7 @@ class Torrent: """Returns the state of this torrent for saving to the session state""" status = self.handle.status() return (self.torrent_id, self.filename, self.compact, status.paused, - self.save_path, self.total_uploaded) + self.save_path, self.total_uploaded + status.total_payload_upload) def get_eta(self): """Returns the ETA in seconds for this torrent"""