hwtest.js: Fix median computation
By default Array.prototype.sort() sorts all values by converting them to strings, even numbers!
This commit is contained in:
parent
f1957dccb7
commit
28cc0da151
@ -270,7 +270,7 @@ function script_redrawTestDone(time) {
|
|||||||
function script_collectTimings(time) {
|
function script_collectTimings(time) {
|
||||||
for (let timing in redrawTimes) {
|
for (let timing in redrawTimes) {
|
||||||
let times = redrawTimes[timing];
|
let times = redrawTimes[timing];
|
||||||
times.sort();
|
times.sort(function(a, b) { return a - b });
|
||||||
|
|
||||||
let len = times.length;
|
let len = times.length;
|
||||||
let median;
|
let median;
|
||||||
|
Loading…
Reference in New Issue
Block a user