Fix possible incorrect display of uploaded total in details tab.

This commit is contained in:
Andrew Resch 2008-04-19 16:07:02 +00:00
parent 8de21c82ae
commit 1b5bfaaad1
1 changed files with 1 additions and 7 deletions

View File

@ -154,12 +154,6 @@ 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"]),