Skip to content

Commit

Permalink
Fix hits not INT
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthorNet authored Aug 10, 2017
1 parent 91c1949 commit 17bae4b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions contrib/monitor/schemas.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,10 @@ <h2>Schemas in percent (Last 60 days)</h2>
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
Expand Down

0 comments on commit 17bae4b

Please sign in to comment.