Save the uploaded_total in torrent state.

This commit is contained in:
Andrew Resch 2007-10-15 01:56:47 +00:00
parent 64a94ec197
commit 5b7b027f48

View File

@ -62,7 +62,7 @@ class Torrent:
"""Returns the state of this torrent for saving to the session state""" """Returns the state of this torrent for saving to the session state"""
status = self.handle.status() status = self.handle.status()
return (self.torrent_id, self.filename, self.compact, status.paused, 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): def get_eta(self):
"""Returns the ETA in seconds for this torrent""" """Returns the ETA in seconds for this torrent"""