mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
StatusCommand: fixed output of global memory limit (#5090)
Fix incorrect "Maximum memory (manager)" output
This commit is contained in:
@ -103,7 +103,7 @@ class StatusCommand extends VanillaCommand{
|
||||
|
||||
$globalLimit = $server->getMemoryManager()->getGlobalMemoryLimit();
|
||||
if($globalLimit > 0){
|
||||
$sender->sendMessage(TextFormat::GOLD . "Maximum memory (manager): " . TextFormat::RED . number_format(round($globalLimit, 2), 2) . " MB.");
|
||||
$sender->sendMessage(TextFormat::GOLD . "Maximum memory (manager): " . TextFormat::RED . number_format(round(($globalLimit / 1024) / 1024, 2), 2) . " MB.");
|
||||
}
|
||||
|
||||
foreach($server->getWorldManager()->getWorlds() as $world){
|
||||
|
Reference in New Issue
Block a user