Sfoglia il codice sorgente

use 80% vcpu count as cpulimit

andre 4 anni fa
parent
commit
c9505445ff
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/UI/VmCreate/Providers/VmCreateProvider.php

+ 1 - 1
app/UI/VmCreate/Providers/VmCreateProvider.php

@@ -275,7 +275,7 @@ class VmCreateProvider extends BaseModelDataProvider implements ClientArea
         //cpulimit
         //cpulimit
         if( !$this->configuration()->isPermissionCpuLimit() && !$this->formData['cpuPriority']){
         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'];
+            $this->vmModel->cpulimit = $this->formData['vcpu'] * 0.8;
         }
         }
         //cpuunits
         //cpuunits
         if( !$this->configuration()->isPermissionCpuunits() && !$this->formData['cpuPriority']){
         if( !$this->configuration()->isPermissionCpuunits() && !$this->formData['cpuPriority']){