Commit bb861b6b authored by Jérome Perrin's avatar Jérome Perrin

Only display 2 digit for exit stat

parent 0ca30f55
...@@ -522,6 +522,9 @@ ...@@ -522,6 +522,9 @@
text += "<tr><td>Average Daily Line Attainment</td><td>" + ( text += "<tr><td>Average Daily Line Attainment</td><td>" + (
(attainment_list.reduce(function(a, b){return a+b}) / attainment_list.length ) * 100).toFixed(2) + "%</td></tr>"; (attainment_list.reduce(function(a, b){return a+b}) / attainment_list.length ) * 100).toFixed(2) + "%</td></tr>";
} else { } else {
if (typeof value == "number") {
value = value.toFixed(2)
}
text += "<tr><td>" + metric + "</td><td>" + value + "</td></tr>"; text += "<tr><td>" + metric + "</td><td>" + value + "</td></tr>";
} }
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment