Skip to content

Commit

Permalink
Removed Commodity v1 projection from EDDN Status
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthorNet committed Dec 21, 2015
1 parent 0977952 commit 0432174
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions contrib/monitor/schemas.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ <h2>Schemas in percent (Last 60 days)</h2>
if(schema.substr(schema.length - 4) == 'test')
return;

if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity1')
return;

// Check series exists
if(!chart.get(makeSlug(schema)))
{
Expand All @@ -225,6 +228,8 @@ <h2>Schemas in percent (Last 60 days)</h2>
name = 'Commodity v2';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1')
name = 'Shipyard v1';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnoutfitting1')
name = 'Outfitting v1';
else
name = schema;

Expand All @@ -233,13 +238,14 @@ <h2>Schemas in percent (Last 60 days)</h2>
name: name,
data: []
});

/*
if(name == 'Commodity v2')
chart.addSeries({
id: makeSlug(schema + '(Projected)'),
name: name + ' (Projected * 55.0287)',
data: []
});
*/
}

// Add data
Expand All @@ -248,11 +254,13 @@ <h2>Schemas in percent (Last 60 days)</h2>
serie.addPoint({x: date, y: parseInt(hits)}, false);

// Add projected
/*
if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2')
{
serie = chart.get(makeSlug(schema + '(Projected)'));
serie.addPoint({x: date, y: Math.round(parseInt(hits)*55.0287)}, false);
}
*/

// Check series exists
if(!chartStacked.get(makeSlug(schema)))
Expand All @@ -264,18 +272,22 @@ <h2>Schemas in percent (Last 60 days)</h2>
name = 'Commodity v2';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1')
name = 'Shipyard v1';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnoutfitting1')
name = 'Outfitting v1';
else
name = schema;

/*
if(name == 'Commodity v2' && !chartStacked.get(makeSlug(schema + '(Projected)')))
chartStacked.addSeries({
id: makeSlug(schema + '(Projected)'),
name: name + ' (Projected * 55.0287)',
data: []
});
else
*/
{
if(name != 'Commodity v2')
//if(name != 'Commodity v2')
chartStacked.addSeries({
id: makeSlug(schema),
name: name,
Expand All @@ -287,13 +299,15 @@ <h2>Schemas in percent (Last 60 days)</h2>


// Add projected
/*
if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2')
{
serie = chartStacked.get(makeSlug(schema + '(Projected)'));
serie.addPoint({x: date, y: Math.round(parseInt(hits)*55.0287)}, false);
}
// Add data
else
*/
{
serie = chartStacked.get(makeSlug(schema));

Expand Down

0 comments on commit 0432174

Please sign in to comment.