Partial backport of 2bffd5cc1c326670c25386ce78e5c690f4c5fd54 to 3.6

This commit is contained in:
Dylan K. Taylor 2019-03-09 19:10:09 +00:00
parent 1d810f8aeb
commit 10612acace

View File

@ -2622,8 +2622,10 @@ class Server{
}
if($this->autoSave and ++$this->autoSaveTicker >= $this->autoSaveTicks){
$this->autoSaveTicker = 0;
$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");
}
if($this->sendUsageTicker > 0 and --$this->sendUsageTicker === 0){