Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r197:bc9ef9dbc0a0
Date: 2012-03-28 19:56 +0200
http://bitbucket.org/pypy/jitviewer/changeset/bc9ef9dbc0a0/

Log:    count percentage better

diff --git a/_jitviewer/app.py b/_jitviewer/app.py
--- a/_jitviewer/app.py
+++ b/_jitviewer/app.py
@@ -127,7 +127,7 @@
                     op.count = getattr(subloop, 'count', '?')
                     if (hasattr(subloop, 'count') and
                         hasattr(orig_loop, 'count')):
-                        op.percentage = subloop.count / orig_loop.count
+                        op.percentage = int((float(subloop.count) / 
orig_loop.count)*100)
                     else:
                         op.percentage = '?'
         loop = FunctionHtml.from_operations(ops, self.storage,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to