From e6c2ddbb475de4cd1078463876daa3e10be5e8bf Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 2 Feb 2013 16:21:00 +0100 Subject: [PATCH] Fixed usage stats --- src/API/ServerAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 8b29e347..6c3374fb 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -232,8 +232,8 @@ class ServerAPI{ "os" => Utils::getOS(), "version" => MAJOR_VERSION, "protocol" => CURRENT_PROTOCOL, - "online" => count($this->clients), - "max" => $this->maxClients, + "online" => count($this->server->clients), + "max" => $this->server->maxClients, )); }