Fix possible incorrect display of uploaded total in details tab.
This commit is contained in:
parent
8de21c82ae
commit
1b5bfaaad1
|
@ -154,13 +154,7 @@ class DetailsTabManager(object):
|
|||
self.total_downloaded.set_text('%s (%s)' % \
|
||||
(common.fsize(state["total_done"]),
|
||||
common.fsize(state["total_payload_download"])))
|
||||
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)' % \
|
||||
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"])))
|
||||
|
|
Loading…
Reference in New Issue