protected function onLoad()
    {
        if (isset($this->minspareworkers->value) && $this->minspareworkers->value > 0
            && isset($this->maxspareworkers->value) && $this->maxspareworkers->value > 0
        ) {
            if ($this->minspareworkers->value > $this->maxspareworkers->value) {
                Daemon::log('\'minspareworkers\' (' . $this->minspareworkers->value . ')  cannot be greater than \'maxspareworkers\' (' . $this->maxspareworkers->value . ').');
                $this->minspareworkers->value = $this->maxspareworkers->value;
            }
        }

        if (isset($this->minworkers->value) && isset($this->maxworkers->value)) {
            if ($this->minworkers->value > $this->maxworkers->value) {
                $this->minworkers->value = $this->maxworkers->value;
            }
        }
    }
protected function onLoad()
    {
        if (isset($this->minspareworkers->value) && $this->minspareworkers->value > 0
            && isset($this->maxspareworkers->value) && $this->maxspareworkers->value > 0
        ) {
            if ($this->minspareworkers->value > $this->maxspareworkers->value) {
                Daemon::log('\'minspareworkers\' (' . $this->minspareworkers->value . ')  cannot be greater than \'maxspareworkers\' (' . $this->maxspareworkers->value . ').');
                $this->minspareworkers->value = $this->maxspareworkers->value;
            }
        }

        if (isset($this->minworkers->value) && isset($this->maxworkers->value)) {
            if ($this->minworkers->value > $this->maxworkers->value) {
                $this->minworkers->value = $this->maxworkers->value;
            }
        }
    }
protected function onLoad ( ) { if ( isset ( $ this -> minspareworkers -> value ) && $ this -> minspareworkers -> value > 0 && isset ( $ this -> maxspareworkers -> value ) && $ this -> maxspareworkers -> value > 0 ) { if ( $ this -> minspareworkers -> value > $ this -> maxspareworkers -> value ) { Daemon :: log ( '\'minspareworkers\' (' . $ this -> minspareworkers -> value . ')  cannot be greater than \'maxspareworkers\' (' . $ this -> maxspareworkers -> value . ').' ) ; $ this -> minspareworkers -> value = $ this -> maxspareworkers -> value ; } } if ( isset ( $ this -> minworkers -> value ) && isset ( $ this -> maxworkers -> value ) ) { if ( $ this -> minworkers -> value > $ this -> maxworkers -> value ) { $ this -> minworkers -> value = $ this -> maxworkers -> value ; } } }
Called when config is loaded
@return void
Called when config is loaded