diff mercurial/ui.py @ 10220:500d09be7ace stable

ui: display progress with decimal notation
author Patrick Mezard <pmezard@gmail.com>
date Fri, 08 Jan 2010 23:15:24 +0100
parents 9e7b2c49d25d
children 489b0caf21ed cd3e5c47d663
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Jan 08 23:15:22 2010 +0100
+++ b/mercurial/ui.py	Fri Jan 08 23:15:24 2010 +0100
@@ -380,7 +380,7 @@
 
         if total:
             pct = 100.0 * pos / total
-            self.debug('%s:%s %s/%s%s (%4.2g%%)\n'
+            self.debug('%s:%s %s/%s%s (%4.2f%%)\n'
                      % (topic, item, pos, total, unit, pct))
         else:
             self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))