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)' % \
|
self.total_downloaded.set_text('%s (%s)' % \
|
||||||
(common.fsize(state["total_done"]),
|
(common.fsize(state["total_done"]),
|
||||||
common.fsize(state["total_payload_download"])))
|
common.fsize(state["total_payload_download"])))
|
||||||
self.total_uploaded.set_text('%s (%s)' % \
|
try:
|
||||||
(common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\
|
self.total_uploaded.set_text('%s (%s)' % \
|
||||||
|
(common.fsize(self.manager.unique_IDs[unique_id].initial_uploaded_memory+\
|
||||||
state["total_payload_upload"]),
|
state["total_payload_upload"]),
|
||||||
common.fsize(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.download_speed.set_text(common.fspeed(state["download_rate"]))
|
||||||
self.upload_speed.set_text(common.fspeed(state["upload_rate"]))
|
self.upload_speed.set_text(common.fspeed(state["upload_rate"]))
|
||||||
self.seeders.set_text(common.fseed(state))
|
self.seeders.set_text(common.fseed(state))
|
||||||
|
|
Loading…
Reference in New Issue