|
|
@@ -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())
|
|
|
{
|