Added memory-limit option

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-19 13:46:52 +01:00
parent 4a46fde483
commit 11f4096403
4 changed files with 83 additions and 1 deletions

View File

@ -212,6 +212,11 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
}
private function loadProperties(){
if(isset($this->config["memory-limit"])){
@ini_set("memory_limit", $this->config["memory-limit"]);
}else{
$this->config["memory-limit"] = "256M";
}
if(is_object($this->server)){
$this->server->setType($this->config["server-type"]);
$this->server->timePerSecond = $this->config["time-per-second"];