From 17bae4bfbabb79e3d816a9eb81a33c2b7c748323 Mon Sep 17 00:00:00 2001 From: AnthorNet Date: Thu, 10 Aug 2017 16:18:37 +0200 Subject: [PATCH] Fix hits not INT --- contrib/monitor/schemas.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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