This commit is contained in:
Dylan K. Taylor 2023-01-13 17:46:16 +00:00
parent d786ed5ebf
commit 2ed48c8469
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -351,7 +351,7 @@ class WorldManager{
$tickMs = (microtime(true) - $worldTime) * 1000;
$world->tickRateTime = $tickMs;
if($tickMs >= Server::TARGET_SECONDS_PER_TICK * 1000){
$world->getLogger()->debug(sprintf("Tick took too long: %gms (%g ticks)", $tickMs, round($tickMs / Server::TARGET_SECONDS_PER_TICK, 2)));
$world->getLogger()->debug(sprintf("Tick took too long: %gms (%g ticks)", $tickMs, round($tickMs / (Server::TARGET_SECONDS_PER_TICK * 1000), 2)));
}
}