Fixed UI to display the disk size of a disk offering as-is rather than converting from MB to GB

This commit is contained in:
will 2011-02-08 15:37:03 -08:00
parent 736603be86
commit fb8b895a0a

View File

@ -315,7 +315,7 @@ function diskofferingGetDiskSize(jsonObj) {
if(jsonObj.disksize == 0 && jsonObj.isCustomized == true)
diskSize = "custom size (during VM creation or volume creation)";
else
diskSize = convertBytes(jsonObj.disksize * 1024 * 1024); //unit of jsonObj.disksize is MB.
diskSize = jsonObj.disksize + " GB";
return diskSize;
}