browser: test: explicitly convert to number

Change-Id: I2dbecafcc1148aa69010eee822ee0fa30a5e6307
Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2022-04-26 23:45:06 -04:00 committed by Michael Meeks
parent 28c1fa2844
commit c000f119b3

View file

@ -124,7 +124,7 @@ function parseStats(content) {
for (let l of lines) { for (let l of lines) {
var keyval = l.split(' '); var keyval = l.split(' ');
if (keyval.length >= 2) if (keyval.length >= 2)
stats[keyval[0]] = keyval[1]; stats[keyval[0]] = Number(keyval[1]);
} }
if (stats.size < 8) if (stats.size < 8)
return undefined; // not our stats return undefined; // not our stats