mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
MemoryManager: fixed a PHPStan error
This commit is contained in:
parent
f207f9e3e9
commit
078347b44a
@ -47,6 +47,7 @@ use function get_declared_classes;
|
||||
use function get_defined_functions;
|
||||
use function ini_get;
|
||||
use function ini_set;
|
||||
use function intdiv;
|
||||
use function is_array;
|
||||
use function is_object;
|
||||
use function is_resource;
|
||||
@ -115,7 +116,7 @@ class MemoryManager{
|
||||
}else{
|
||||
switch(mb_strtoupper($matches[2])){
|
||||
case "K":
|
||||
$defaultMemory = $m / 1024;
|
||||
$defaultMemory = intdiv($m, 1024);
|
||||
break;
|
||||
case "M":
|
||||
$defaultMemory = $m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user