Fixed autosave time report measurement not using correct unit (as per master)

This commit is contained in:
Dylan K. Taylor 2019-03-20 19:00:41 +00:00
parent 1a8b33dafe
commit c3d80d711d

View File

@ -2583,7 +2583,8 @@ class Server{
$this->getLogger()->debug("[Auto Save] Saving worlds...");
$start = microtime(true);
$this->doAutoSave();
$this->getLogger()->debug("[Auto Save] Save completed in " . round(microtime(true) - $start, 3) . "s");
$time = (microtime(true) - $start);
$this->getLogger()->debug("[Auto Save] Save completed in " . ($time >= 1 ? round($time, 3) . "s" : round($time * 1000) . "ms"));
}
if($this->sendUsageTicker > 0 and --$this->sendUsageTicker === 0){