[pypy-commit] extradoc extradoc: give absolute numbers as well

cfbolz noreply at buildbot.pypy.org
Fri Aug 17 11:10:27 CEST 2012


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: extradoc
Changeset: r4653:e00ee8485f79
Date: 2012-08-17 11:08 +0200
http://bitbucket.org/pypy/extradoc/changeset/e00ee8485f79/

Log:	give absolute numbers as well

diff --git a/talk/vmil2012/tool/build_tables.py b/talk/vmil2012/tool/build_tables.py
--- a/talk/vmil2012/tool/build_tables.py
+++ b/talk/vmil2012/tool/build_tables.py
@@ -35,10 +35,11 @@
         total_failures = len(info['results'])
         bridges = len([k for k,v in info['results'].iteritems() \
                                             if v > BRIDGE_THRESHOLD])
+        num_50 = we_are_50_percent(info)
         res = [bench.replace('_', '\\_'),
                 "%.1f\\%%" % (100 * total_failures/total),
                 "%.1f\\%%" % (100 * bridges/total),
-                "%.3f\\%%"  % (100 * we_are_50_percent(info)),
+                "%d~~\\textasciitilde{}~~%.3f\\%%"  % (num_50, num_50 / total * 100),
         ]
         table.append(res)
     output = render_table(template, head, sorted(table))
@@ -58,7 +59,7 @@
     for i, f in enumerate(failure_counts):
         current_sum += f
         if current_sum > total_failures * 0.50:
-            return (i + 1)/total_guards
+            return (i + 1)
     return -1
 
 def build_resume_data_table(csvfiles, texfile, template):


More information about the pypy-commit mailing list