|
|
@@ -125,6 +125,15 @@ class GeneralSection extends HalfPageSection
|
|
|
$this->addField($field);
|
|
|
}
|
|
|
//memory
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'proxmoxCloud',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->resourceManager->memory()->free(),
|
|
|
+ 'Debug',
|
|
|
+ $this->configuration()->serverMemory->min
|
|
|
+ );
|
|
|
+
|
|
|
$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);
|