mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 07:33:31 +00:00
Save the uploaded_total in torrent state.
This commit is contained in:
parent
64a94ec197
commit
5b7b027f48
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user