diff --git a/blame.py b/blame.py
index 4d6eecd..070a551 100644
--- a/blame.py
+++ b/blame.py
@@ -172,17 +172,20 @@ class BlameOutput(Outputable):
total_blames += i[1].rows
for i, entry in enumerate(blames):
+ work_percentage = str("{0:.2f}".format(100.0 * entry[1].rows / total_blames))
+
blame_xml += "
" if i % 2 == 1 else ">")
blame_xml += "" + entry[0] + " | "
blame_xml += "" + str(entry[1].rows) + " | "
blame_xml += "" + "{0:.2f}".format(100.0 * entry[1].comments / entry[1].rows) + " | "
+ blame_xml += "" + work_percentage + " | "
blame_xml += "
"
- chart_data += "{{label: \"{0}\", data: {1}}}".format(entry[0], "{0:.2f}".format(100.0 * entry[1].rows / total_blames))
+ chart_data += "{{label: \"{0}\", data: {1}}}".format(entry[0], work_percentage)
if blames[-1] != entry:
chart_data += ", "
- blame_xml += " | | |
"
+ blame_xml += " |
"
blame_xml += ""
blame_xml += "
+