diff --git a/assets/html/index.html b/assets/html/index.html
index 5ecf80b..abf0fb3 100644
--- a/assets/html/index.html
+++ b/assets/html/index.html
@@ -22,6 +22,10 @@
All your favorite Minecraft servers, right now.
Made with ♥ by Cryptkeeper · Open source'd on Github
+
+
+ Watching 0 players on 0 networks.
+
diff --git a/assets/js/site.js b/assets/js/site.js
index d88087c..6a83144 100644
--- a/assets/js/site.js
+++ b/assets/js/site.js
@@ -134,8 +134,21 @@ function updateServerStatus(lastEntry) {
newStatus += 'Failed to ping!';
}
+ lastPlayerEntries[info.name] = 0;
+ lastLatencyEntries[info.name] = 0;
+
div.html(newStatus + '');
}
+
+ var keys = Object.keys(lastPlayerEntries);
+ var totalPlayers = 0;
+
+ for (var i = 0; i < keys.length; i++) {
+ totalPlayers += lastPlayerEntries[keys[i]];
+ }
+
+ $("#stat_totalPlayers").text(formatNumber(totalPlayers));
+ $("#stat_networks").text(formatNumber(keys.length));
}
function sortServers() {