Skip to content
Snippets Groups Projects
Commit cefd12cb authored by Holger Levsen's avatar Holger Levsen
Browse files

WIP: r.d.n: show arch+all percentages

parent 2db5e985
No related tags found
1 merge request!189WIP: r.d.n: show arch+all percentages
...@@ -89,6 +89,9 @@ ...@@ -89,6 +89,9 @@
} }
function fetchStats() { function fetchStats() {
var data_all;
data_all['good'] = 0;
data_all['bad'] = 0;
fetchArchStats("all"); fetchArchStats("all");
fetchArchStats("amd64"); fetchArchStats("amd64");
fetchArchStats("arm64"); fetchArchStats("arm64");
...@@ -107,14 +110,27 @@ ...@@ -107,14 +110,27 @@
let unknown = main['unknown']; let unknown = main['unknown'];
let queue = data['queue_length']; let queue = data['queue_length'];
updateStats('stats', 7, arch, [ if ('all' === arch) {
['repro', (100 / (good + bad) * good).toFixed(2) + '%'], updateStats('stats', 7, arch, [
['good', good], ['repro', (100 / (good + bad) * good).toFixed(2) + '%'],
['bad', bad], ['good', good],
]) ['bad', bad],
]);
} else {
updateStats('stats', 7, arch, [
['repro', (100 / (good + bad) * good).toFixed(2) + '%'],
['good', good],
['bad', bad],
[arch+'+all', (100 / (good + bad + data_all['good'] + data_all['bad']) * (good + data_all['good'])).toFixed(2) + '%'],
]);
}
updateStats('progress', 8, arch, [ updateStats('progress', 8, arch, [
[(100 / (good + unknown + bad) * (good + bad)).toFixed(2) + '%', queue], [(100 / (good + unknown + bad) * (good + bad)).toFixed(2) + '%', queue],
]); ]);
if ('all' === arch) {
data_all['good'] = good;
data_all['bad'] = bad;
}
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment