Don't add zeros for offline networks

This commit is contained in:
Cryptkeeper 2015-11-09 16:33:56 -06:00
parent 5cb1198762
commit 3eceb05cac

@ -268,16 +268,18 @@ $(document).ready(function() {
updateServerStatus(update);
graph.listing.push([update.info.timestamp, update.result ? update.result.players.online : 0]);
if (update.result) {
graph.listing.push([update.info.timestamp, update.result ? update.result.players.online : 0]);
if (graph.listing.length > 72) {
graph.listing.shift();
if (graph.listing.length > 72) {
graph.listing.shift();
}
graph.plot.setData([graph.listing]);
graph.plot.setupGrid();
graph.plot.draw();
}
graph.plot.setData([graph.listing]);
graph.plot.setupGrid();
graph.plot.draw();
});
socket.on('updateMojangServices', function(data) {