fix total uploaded

This commit is contained in:
Marcos Pinto 2007-12-13 04:50:27 +00:00
parent 5eb2e95dd4
commit 202b3019a3
1 changed files with 8 additions and 2 deletions

View File

@ -153,6 +153,12 @@ 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"])))
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+\ (common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\
state["total_payload_upload"]), state["total_payload_upload"]),