From 9b212ae034d1fdb7663128e0439f8548c5c9abf9 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 11 May 2013 14:28:37 +0200 Subject: [PATCH] New stats --- src/API/ServerAPI.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index b128ed91f..72d0eba6c 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -199,7 +199,11 @@ class ServerAPI{ Utils::curl_post("http://stats.pocketmine.net/usage.php", array( "serverid" => $this->server->serverID, "os" => Utils::getOS(), + "memory_total" => $this->getProperty("memory-limit"), + "memory_usage" => memory_get_usage(true), + "php_version" => PHP_VERSION, "version" => MAJOR_VERSION, + "mc_version" => CURRENT_MINECRAFT_VERSION, "protocol" => CURRENT_PROTOCOL, "online" => count($this->server->clients), "max" => $this->server->maxClients,