3.1.0 (#69)
This commit is contained in:
@ -111,7 +111,6 @@ exports.setIntervalNoDelay = function(func, delay) {
|
||||
exports.convertServerHistory = function(sqlData) {
|
||||
var serverIps = getServerIps();
|
||||
var graphData = {};
|
||||
var highestPlayerCount = {};
|
||||
|
||||
var startTime = exports.getCurrentTimeMs();
|
||||
|
||||
@ -124,9 +123,6 @@ exports.convertServerHistory = function(sqlData) {
|
||||
|
||||
if (!graphData[name]) graphData[name] = [];
|
||||
graphData[name].push([entry.timestamp, entry.playerCount]);
|
||||
|
||||
if (!highestPlayerCount[entry.ip]) highestPlayerCount[entry.ip] = 0;
|
||||
if (entry.playerCount > highestPlayerCount[entry.ip]) highestPlayerCount[entry.ip] = entry.playerCount;
|
||||
}
|
||||
|
||||
// Break it into minutes.
|
||||
@ -137,10 +133,7 @@ exports.convertServerHistory = function(sqlData) {
|
||||
|
||||
logger.info('Parsed ' + sqlData.length + ' ping records in ' + (exports.getCurrentTimeMs() - startTime) + 'ms');
|
||||
|
||||
return {
|
||||
graphData: graphData,
|
||||
highestPlayerCount: highestPlayerCount
|
||||
};
|
||||
return graphData;
|
||||
};
|
||||
|
||||
exports.getBootTime = function() {
|
||||
|
Reference in New Issue
Block a user