Commit 92a6fa56 authored by Jérome Perrin's avatar Jérome Perrin

support multiple replications in Exit stat output

parent 481d8614
......@@ -542,6 +542,14 @@
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>";
} else {
if (typeof value == "object") {
if (value.min == value.max) {
value = value.min;
} else {
// better than [Object] ...
value = JSON.stringify(value, " ", undefined)
}
}
if (typeof value == "number") {
value = value.toFixed(2)
}
......
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