summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-17 19:54:40 +0000
committerMatt Wilson <msw@redhat.com>2000-07-17 19:54:40 +0000
commit315d28452630de867e350131c78e925fd7fdbc54 (patch)
tree8939c675efd95f615f68fb6442397ea6be3b311a /iw
parent3da8e3ff92ee5dd457aa0f2aac0c9f3d047a2a29 (diff)
downloadanaconda-315d28452630de867e350131c78e925fd7fdbc54.tar.gz
anaconda-315d28452630de867e350131c78e925fd7fdbc54.tar.xz
anaconda-315d28452630de867e350131c78e925fd7fdbc54.zip
fix integer overflow
Diffstat (limited to 'iw')
-rw-r--r--iw/progress_gui.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py
index 7631ed935..b937d44b4 100644
--- a/iw/progress_gui.py
+++ b/iw/progress_gui.py
@@ -63,13 +63,13 @@ class InstallProgressWindow (InstallWindow):
self.sizeComplete = self.sizeComplete + header[rpm.RPMTAG_SIZE]
apply (self.clist.set_text, self.status["completed"]["size"] +
- ("%d M" % (self.sizeComplete / (1024 * 1024)),))
+ ("%d M" % (self.sizeComplete)))
apply (self.clist.set_text, self.status["remaining"]["packages"] +
- ("%d" % (self.numTotal - self.numComplete),))
+ ("%d" % (self.numTotal - self.numComplete)))
apply (self.clist.set_text, self.status["remaining"]["size"] +
- ("%d M" % ((self.totalSize - self.sizeComplete) / (1024 * 1024)),))
+ ("%d M" % (self.totalSize - self.sizeComplete)))
# check to see if we've started yet
if (self.timeStarted == -1):
@@ -131,7 +131,7 @@ class InstallProgressWindow (InstallWindow):
apply (self.clist.set_text, self.status["total"]["packages"] + ("%d" % total,))
apply (self.clist.set_text, self.status["total"]["size"] +
- ("%d M" % (totalSize / (1024 * 1024)),))
+ ("%d M" % totalSize,))
threads_leave ()
def allocate (self, widget, *args):