mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Compatibility with pthreads > 2.0.8
This commit is contained in:
@ -101,7 +101,7 @@ class TimingsHandler{
|
||||
if(PluginManager::$useTimings){
|
||||
foreach(self::$HANDLERS as $timings){
|
||||
if($timings->curTickTotal > 0.05){
|
||||
$timings->violations += ceil($timings->curTickTotal / 0.05);
|
||||
$timings->violations += round($timings->curTickTotal / 0.05);
|
||||
}
|
||||
$timings->curTickTotal = 0;
|
||||
$timings->timingDepth = 0;
|
||||
|
Reference in New Issue
Block a user