Same for Peak Memory usage

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-30 19:34:08 +01:00
parent bd196c0fcb
commit a6cc0f8261

View File

@ -151,7 +151,7 @@ class PocketMinecraftServer{
$info = array();
$info["tps"] = $this->getTPS();
$info["memory_usage"] = round((memory_get_usage() / 1024) / 1024, 2)."MB";
$info["memory_peak_usage"] = round((memory_get_peak_usage(true) / 1024) / 1024, 2)."MB";
$info["memory_peak_usage"] = round((memory_get_peak_usage() / 1024) / 1024, 2)."MB";
$info["entities"] = $this->query("SELECT count(EID) as count FROM entities;", true);
$info["entities"] = $info["entities"]["count"];
$info["events"] = count($this->eventsID);