Explorar el Código

debug additional slider

andre hace 4 años
padre
commit
911b5073a7
Se han modificado 1 ficheros con 12 adiciones y 16 borrados
  1. 12 16
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 12 - 16
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -125,24 +125,20 @@ class GeneralSection extends BaseSection
         $this->addField($field);
         if($this->configuration()->isDetailsCombinedView()){
             //disk
-/*            foreach ($vm->getHardDiskRepostiory()->fetch() as $disk){
-                if($disk->getName() == 'disk-0'){
-                    $field = new Range('disk', (int) $disk->getSize(), $this->resourceManager->disk()->free());
-                    $field->addValidator(new NumberValidator((int) $disk->getSize(), $this->resourceManager->disk()->free(),true));
-                    $field->setDefaultValue((int) $disk->getSize());
-                    $field->setDescription('description');
-                    $this->addField($field);
+            $field = new Range('disk', 0, $this->resourceManager->disk()->free());
+            $field->addValidator(new NumberValidator(0, $this->resourceManager->disk()->free(),true));
+            $field->setDefaultValue(0);
+            $field->setDescription('description');
+            $this->addField($field);
 
-                    logModuleCall(
-                        'proxmoxCloud',
-                        __FUNCTION__,
-                        $vm->getHardDiskRepostiory()->fetch(),
-                        'Debug',
-                        (int) $disk->getSize()
-                    );
+            logModuleCall(
+                'proxmoxCloud',
+                __FUNCTION__,
+                $vm,
+                'Debug',
+                $this->resourceManager->disk()->getUsed()
+            );
 
-                }
-            } */
         }
         /**
          * @deprecated