|
|
@@ -126,7 +126,7 @@ class GeneralSection extends HalfPageSection
|
|
|
$this->addField($field);
|
|
|
}
|
|
|
//memory
|
|
|
- $field = new Text('memory');
|
|
|
+ $field = new Range('memory', $this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free());
|
|
|
$field->addValidator(new NumberValidator($this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free(),true));
|
|
|
$field->setDefaultValue($this->configuration()->serverMemory->min);
|
|
|
$field->setDescription('description');
|