First usage report 5 minutes after the server restart.

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-11 23:16:29 +02:00
parent 3e4efbb26a
commit feaecbcd60

View File

@ -344,7 +344,7 @@ class ServerAPI{
public function init(){
if($this->getProperty("send-usage") !== false){
$this->server->schedule(36000, array($this, "sendUsage"), array(), true); //Send usage data every 30 minutes
$this->sendUsage();
$this->server->schedule(6000, array($this, "sendUsage")); //Send the info after 5 minutes have passed
}
$this->server->init();
unregister_tick_function(array($this->server, "tick"));