[pypy-svn] r50745 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Fri Jan 18 12:10:20 CET 2008


Author: arigo
Date: Fri Jan 18 12:10:19 2008
New Revision: 50745

Modified:
   pypy/dist/pypy/translator/goal/timing.py
Log:
Print "---" instead of "-" in order to avoid confusion.
It looked too much like negative times.


Modified: pypy/dist/pypy/translator/goal/timing.py
==============================================================================
--- pypy/dist/pypy/translator/goal/timing.py	(original)
+++ pypy/dist/pypy/translator/goal/timing.py	Fri Jan 18 12:10:19 2008
@@ -37,11 +37,11 @@
         """ Pretty print
         """
         spacing = " "*(30 - len("Total:"))
-        total = "Total:%s - %.1f s" % (spacing, self.ttime())
+        total = "Total:%s --- %.1f s" % (spacing, self.ttime())
         log.bold("Timings:")
         for event, time in self.events:
             spacing = " "*(30 - len(event))
-            first = "%s%s - " % (event, spacing)
+            first = "%s%s --- " % (event, spacing)
             second = "%.1f s" % (time,)
             additional_spaces = " " * (len(total) - len(first) - len(second))
             log.bold("%s%s%s" % (first, additional_spaces, second))



More information about the Pypy-commit mailing list