ofri masad has uploaded a new change for review. Change subject: core: Fix calculation of specific quota (#838589) ......................................................................
core: Fix calculation of specific quota (#838589) https://bugzilla.redhat.com/838589 Calculations of Specific-Storage-Quota were fixed. Change-Id: Ic973f4257f8c2289bfa7948aa9f32209f5c83f06 Signed-off-by: Ofri Masad <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/68/7368/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java index 9fa5c56..3366c9f 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java @@ -229,11 +229,11 @@ hasStorageId = true; if (quotaStorage.getStorageSizeGB() != UNLIMITED) { double storageUsagePercentage = quotaStorage.getStorageSizeGBUsage() - / quota.getGlobalQuotaStorage().getStorageSizeGB() * 100; + / quotaStorage.getStorageSizeGB() * 100; double storageRequestPercentage = desiredStorageSizeQuotaMap.get(quotaId) .get(storageId) - / quota.getGlobalQuotaStorage().getStorageSizeGB() * 100; + / quotaStorage.getStorageSizeGB() * 100; if (!checkQuotaStorageLimits(storagePool.getQuotaEnforcementType(), quota, -- To view, visit http://gerrit.ovirt.org/7368 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic973f4257f8c2289bfa7948aa9f32209f5c83f06 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
