[pve-devel] r5664 - pve-storage/pve2/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Mar 9 12:13:18 CET 2011


Author: dietmar
Date: 2011-03-09 12:13:18 +0100 (Wed, 09 Mar 2011)
New Revision: 5664

Modified:
   pve-storage/pve2/PVE/Storage.pm
Log:
return integer


Modified: pve-storage/pve2/PVE/Storage.pm
===================================================================
--- pve-storage/pve2/PVE/Storage.pm	2011-03-09 10:55:05 UTC (rev 5663)
+++ pve-storage/pve2/PVE/Storage.pm	2011-03-09 11:13:18 UTC (rev 5664)
@@ -1554,6 +1554,8 @@
 		$used *= (1024*1024) if $u eq 'M';
 		$used *= (1024*1024*1024) if $u eq 'G';
 		$used *= (1024*1024*1024*1024) if $u eq 'T';
+
+		$used = int($used);
 	    }
 	});
     };




More information about the pve-devel mailing list