Browse Source

try to check ressources on changepackage

andre 4 years ago
parent
commit
0b8cd837bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Actions/ChangePackage.php

+ 1 - 1
app/Http/Actions/ChangePackage.php

@@ -59,7 +59,7 @@ class ChangePackage extends AddonController
             if($this->ressource->vcpus()->getUsed() > $params['configoptions']['vcpus']){
                 throw new \Exception('vCPUs wurden unterbucht');
             }
-            if($this->ressource->memory()->getUsed() > $params['configoptions']['Memory Limit']){
+            if(($this->ressource->memory()->getUsed() / 1024) > $params['configoptions']['Memory Limit']){
                 logModuleCall(
                     'proxmoxCloud',
                     __FUNCTION__,