Change to use 'all_time_upload' and 'all_time_download' due to change

in recent libtorrent revision
This commit is contained in:
Andrew Resch 2008-10-15 18:49:51 +00:00
commit d0da82de21
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Deluge 1.0.3 (In Development)
Core:
* Fix upnp - it should work on more routers now too
* Fix issue where Deluge would send improper stats to the tracker after a
pause/resume.
Deluge 1.0.2 (10 October 2008) Deluge 1.0.2 (10 October 2008)
Core: Core:
* Fix issue where torrents will not be properly added to the session * Fix issue where torrents will not be properly added to the session

View file

@ -409,12 +409,12 @@ class Torrent:
full_status = { full_status = {
"distributed_copies": distributed_copies, "distributed_copies": distributed_copies,
"total_done": self.status.total_done, "total_done": self.status.total_done,
"total_uploaded": self.total_uploaded + self.status.total_payload_upload, "total_uploaded": self.status.all_time_upload,
"state": self.state, "state": self.state,
"paused": self.status.paused, "paused": self.status.paused,
"progress": progress, "progress": progress,
"next_announce": self.status.next_announce.seconds, "next_announce": self.status.next_announce.seconds,
"total_payload_download": self.status.total_payload_download, "total_payload_download": self.status.all_time_download,
"total_payload_upload": self.status.total_payload_upload, "total_payload_upload": self.status.total_payload_upload,
"download_payload_rate": self.status.download_payload_rate, "download_payload_rate": self.status.download_payload_rate,
"upload_payload_rate": self.status.upload_payload_rate, "upload_payload_rate": self.status.upload_payload_rate,