mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
StatusCommand: fixed output of global memory limit (#5090)
Fix incorrect "Maximum memory (manager)" output
This commit is contained in:
parent
d15a90899e
commit
e12e4e8fb8
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user