mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Fix for invalid CPU usage limit
This commit is contained in:
parent
4d4786dc0d
commit
58d8fc339e
1 changed files with 4 additions and 2 deletions
|
|
@ -567,10 +567,12 @@ class PocketMinecraftServer{
|
||||||
++$lastLoop;
|
++$lastLoop;
|
||||||
if($lastLoop < 16){
|
if($lastLoop < 16){
|
||||||
usleep(1);
|
usleep(1);
|
||||||
}elseif($lastLoop >= 128){
|
}elseif($lastLoop < 128){
|
||||||
usleep(100);
|
usleep(100);
|
||||||
}elseif($lastLoop >= 256){
|
}elseif($lastLoop < 256){
|
||||||
usleep(512);
|
usleep(512);
|
||||||
|
}else{
|
||||||
|
usleep(10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue