From 1b5bfaaad1147201ee17f6520970eb0c0cfe527c Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 19 Apr 2008 16:07:02 +0000 Subject: [PATCH] Fix possible incorrect display of uploaded total in details tab. --- src/tab_details.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/tab_details.py b/src/tab_details.py index 6d8e23dbe..0e999c956 100644 --- a/src/tab_details.py +++ b/src/tab_details.py @@ -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"])))