diff --git a/contrib/monitor/schemas.html b/contrib/monitor/schemas.html index 5e2627bc..c7c3df8f 100644 --- a/contrib/monitor/schemas.html +++ b/contrib/monitor/schemas.html @@ -228,15 +228,10 @@

Schemas in percent (Last 60 days)

schemasCount = {}; $.each(schemasCountTmp, function(schema, hits){ schema = schema.replace('http://schemas.elite-markets.net/eddn/', 'https://eddn.edcd.io/schemas/'); + hits = parseInt(hits); - if(schemasCount[schema]) - { - schemasCount[schema] += hits; - } - else - { - schemasCount[schema] = hits; - } + if(schemasCount[schema]){ schemasCount[schema] += hits; } + else{ schemasCount[schema] = hits; } }); // Loop results