andre 4 лет назад
Родитель
Сommit
5f792a078f
1 измененных файлов с 28 добавлено и 0 удалено
  1. 28 0
      app/Http/Actions/ChangePackage.php

+ 28 - 0
app/Http/Actions/ChangePackage.php

@@ -123,11 +123,39 @@ class ChangePackage extends AddonController
                 }
                 //RAM
                 $ram = $this->configuration()->getMemory();
+
+                logModuleCall(
+                    'proxmoxVPS',
+                    __FUNCTION__,
+                    $ram,
+                    'Debug 1',
+                    $this->get_object_vars()
+                );
+
                 Utility::unitFormat($ram, "mb", 'bytes');
+
                 if ($this->getWhmcsConfigOption(ConfigurableOption::MEMORY))
                 {
                     $ram = $this->getWhmcsConfigOption(ConfigurableOption::MEMORY);
+
+                    logModuleCall(
+                        'proxmoxVPS',
+                        __FUNCTION__,
+                        $ram,
+                        'Debug 2',
+                        $this->get_object_vars()
+                    );
+        
                     Utility::unitFormat($ram, $this->configuration()->getMemoryUnit(), 'bytes');
+
+                    logModuleCall(
+                        'proxmoxVPS',
+                        __FUNCTION__,
+                        $ram,
+                        'Debug 3',
+                        $this->get_object_vars()
+                    );
+
                 }
                 if ($this->configuration()->isQemu())
                 {