browser: test: explicitly convert to number
Change-Id: I2dbecafcc1148aa69010eee822ee0fa30a5e6307 Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
28c1fa2844
commit
c000f119b3
1 changed files with 1 additions and 1 deletions
2
browser/test/bootstrap.js
vendored
2
browser/test/bootstrap.js
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue