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,6 +268,7 @@ $(document).ready(function() {
updateServerStatus(update); updateServerStatus(update);
if (update.result) {
graph.listing.push([update.info.timestamp, update.result ? update.result.players.online : 0]); graph.listing.push([update.info.timestamp, update.result ? update.result.players.online : 0]);
if (graph.listing.length > 72) { if (graph.listing.length > 72) {
@ -278,6 +279,7 @@ $(document).ready(function() {
graph.plot.setupGrid(); graph.plot.setupGrid();
graph.plot.draw(); graph.plot.draw();
}
}); });
socket.on('updateMojangServices', function(data) { socket.on('updateMojangServices', function(data) {