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:
Owen W. Taylor 2014-08-10 09:23:48 +02:00
parent f1957dccb7
commit 28cc0da151

View File

@ -270,7 +270,7 @@ function script_redrawTestDone(time) {
function script_collectTimings(time) {
for (let timing in redrawTimes) {
let times = redrawTimes[timing];
times.sort();
times.sort(function(a, b) { return a - b });
let len = times.length;
let median;