From 2960ba733afcb6e8d056473475eb3e610d7250dc Mon Sep 17 00:00:00 2001 From: Mike Tutkowski Date: Thu, 24 Apr 2014 22:18:56 -0600 Subject: [PATCH] CLOUDSTACK-6170 Updated logic to more accurately calculate how much space is currently allocated for a managed storage pool --- server/src/com/cloud/capacity/CapacityManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/capacity/CapacityManagerImpl.java b/server/src/com/cloud/capacity/CapacityManagerImpl.java index cef019ddff1..14fbe7f80b6 100755 --- a/server/src/com/cloud/capacity/CapacityManagerImpl.java +++ b/server/src/com/cloud/capacity/CapacityManagerImpl.java @@ -548,7 +548,7 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager, // if the storage pool is managed, the used bytes can be larger than the sum of the sizes of all of the non-destroyed volumes // in this case, call getUsedBytes(StoragePoolVO) if (pool.isManaged()) { - totalAllocatedSize = getUsedBytes(pool); + return getUsedBytes(pool); } else { // Get size for all the non-destroyed volumes