mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
fix total uploaded
This commit is contained in:
parent
5eb2e95dd4
commit
202b3019a3
@ -153,10 +153,16 @@ class DetailsTabManager(object):
|
||||
self.total_downloaded.set_text('%s (%s)' % \
|
||||
(common.fsize(state["total_done"]),
|
||||
common.fsize(state["total_payload_download"])))
|
||||
self.total_uploaded.set_text('%s (%s)' % \
|
||||
(common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\
|
||||
try:
|
||||
self.total_uploaded.set_text('%s (%s)' % \
|
||||
(common.fsize(self.manager.unique_IDs[unique_id].initial_uploaded_memory+\
|
||||
state["total_payload_upload"]),
|
||||
common.fsize(state["total_payload_upload"])))
|
||||
except AttributeError:
|
||||
self.total_uploaded.set_text('%s (%s)' % \
|
||||
(common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\
|
||||
state["total_payload_upload"]),
|
||||
common.fsize(state["total_payload_upload"])))
|
||||
self.download_speed.set_text(common.fspeed(state["download_rate"]))
|
||||
self.upload_speed.set_text(common.fspeed(state["upload_rate"]))
|
||||
self.seeders.set_text(common.fseed(state))
|
||||
|
Loading…
x
Reference in New Issue
Block a user