From 50f9011641564890b020ec7a1331e48e1f8c6972 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 13 May 2011 14:41:53 +0000 Subject: [PATCH] Updated size rendering for partitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20825 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/Device/class_AddPartitionDialog.inc | 2 +- .../admin/systems/goto/Device/class_DevicePartition.inc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc index 6f1658178..76938fb9e 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc @@ -106,7 +106,7 @@ class AddPartitionDialog "freeLvmPartitions" => "getUnassignedPhysicalVolumes", "freeRaidPartitions" => "getUnassignedRaidPartitions"); foreach($map as $target => $func){ - $this->$target = @$this->partitionObject->$func('causes an error'); + $this->$target = @$this->partitionObject->$func(); if(!$this->partitionObject->success()){ $this->errorMsg = $this->partitionObject->getError(); return; diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc index 7e52149c1..d5a074bf1 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc @@ -178,7 +178,7 @@ class DevicePartition $size = ""; if(isset($deviceUsage['raid'][$raid['target']])){ - $size = "".$deviceUsage['raid'][$raid['target']]['size'].""; + $size = "".$this->__convertPartSize($deviceUsage['raid'][$raid['target']]['size']).""; } $lData[] = array("data" => array($str, @@ -218,7 +218,7 @@ class DevicePartition $size = ""; if(isset($deviceUsage['vg'][$vg['name']])){ - $size = "".$deviceUsage['vg'][$vg['name']]['size'].""; + $size = "".$this->__convertPartSize($deviceUsage['vg'][$vg['name']]['size']).""; } // Add entry to the list. @@ -263,7 +263,7 @@ class DevicePartition $size = ""; if(isset($deviceUsage['disk'][$disk['device']])){ - $size = "".$deviceUsage['disk'][$disk['device']]['size'].""; + $size = "".$this->__convertPartSize($deviceUsage['disk'][$disk['device']]['size']).""; } // Create remove icon -- 2.30.2