|
|
@@ -274,12 +274,12 @@ class VmCreateProvider extends BaseModelDataProvider implements ClientArea
|
|
|
}
|
|
|
//cpulimit
|
|
|
if( !$this->configuration()->isPermissionCpuLimit() && !$this->formData['cpuPriority']){
|
|
|
- $this->vmModel->cpulimit = $this->configuration()->serverCpulimit->min;
|
|
|
+// $this->vmModel->cpulimit = $this->configuration()->serverCpulimit->min;
|
|
|
+ $this->vmModel->cpulimit = $this->formData['vcpu'];
|
|
|
}
|
|
|
//cpuunits
|
|
|
if( !$this->configuration()->isPermissionCpuunits() && !$this->formData['cpuPriority']){
|
|
|
-// $this->vmModel->cpuunits = $this->configuration()->serverCpuunit->min;
|
|
|
- $this->vmModel->cpuunits = $this->formData['vcpu'];
|
|
|
+ $this->vmModel->cpuunits = $this->configuration()->serverCpuunit->min;
|
|
|
}
|
|
|
//swap
|
|
|
if( !$this->configuration()->isPermissionSwap() ){
|