|
|
@@ -125,7 +125,7 @@ class GeneralSection extends BaseSection
|
|
|
$this->addField($field);
|
|
|
}
|
|
|
//memory
|
|
|
- if($vm->isStopped()) {
|
|
|
+ if(!$vm->isRunning()) {
|
|
|
$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->setDescription('description');
|