summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-02-08 19:32:01 +0000
committerMike Fulbright <msf@redhat.com>2001-02-08 19:32:01 +0000
commitdba567dea4d9b08de2abec0235c659d79b8498e4 (patch)
tree8b3b68e3adab3b92230f6e45d397551cdf3a4985
parent2852388145742dab6ed38b80754250271b88997f (diff)
downloadanaconda-dba567dea4d9b08de2abec0235c659d79b8498e4.tar.gz
anaconda-dba567dea4d9b08de2abec0235c659d79b8498e4.tar.xz
anaconda-dba567dea4d9b08de2abec0235c659d79b8498e4.zip
fix way we print elapsed time
-rw-r--r--iw/progress_gui.py8
-rw-r--r--text.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py
index 93de0efb5..ac2f6ba1f 100644
--- a/iw/progress_gui.py
+++ b/iw/progress_gui.py
@@ -71,7 +71,7 @@ class InstallProgressWindow (InstallWindow):
amt = amt % 60
secs = amt
- return "%01d:%02d.%02d" % (int(hours) ,int(min), int(secs))
+ return "%01d:%02d:%02d" % (int(hours) ,int(min), int(secs))
threads_enter ()
self.numComplete = self.numComplete + 1
@@ -252,9 +252,9 @@ class InstallProgressWindow (InstallWindow):
clist.set_column_justification (1, JUSTIFY_RIGHT)
clist.set_column_justification (2, JUSTIFY_RIGHT)
clist.set_column_justification (3, JUSTIFY_RIGHT)
- clist.append ((_("Total"), "0", "0 M", "0:00.00"))
- clist.append ((_("Completed"), "0", "0 M", "0:00.00"))
- clist.append ((_("Remaining"), "0", "0 M", "0:00.00"))
+ clist.append ((_("Total"), "0", "0 M", "0:00:00"))
+ clist.append ((_("Completed"), "0", "0 M", "0:00:00"))
+ clist.append ((_("Remaining"), "0", "0 M", "0:00:00"))
self.frobnicatingClist = 0
clist.connect_after ("size_allocate", self.allocate)
diff --git a/text.py b/text.py
index 9e2d3fcdc..2df426d44 100644
--- a/text.py
+++ b/text.py
@@ -675,7 +675,7 @@ class InstallProgressWindow:
amt = amt % 60
secs = amt
- return "%01d:%02d.%02d" % (int(hours) ,int(min), int(secs))
+ return "%01d:%02d:%02d" % (int(hours) ,int(min), int(secs))
self.numComplete = self.numComplete + 1
self.sizeComplete = self.sizeComplete + (header[rpm.RPMTAG_SIZE] / 1024)