quota: though default value for quota_calculated is 0, the usage server

makes it null while entering usage entries. Flipping the condition so
as to acocunt for that.
This commit is contained in:
Abhinandan Prateek 2015-08-07 10:12:35 +05:30
parent d3f65ae90c
commit 32c5004381
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ public class UsageDaoImpl extends GenericDaoBase<UsageVO, Long> implements Usage
if (domainId != -1) {
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
}
sc.addAnd("quotaCalculated", SearchCriteria.Op.EQ, 0);
sc.addAnd("quotaCalculated", SearchCriteria.Op.NEQ, 1);
s_logger.debug("Getting usage records" + usageFilter.getOrderBy());
Pair<List<UsageVO>, Integer> usageRecords = searchAndCountAllRecords(sc, usageFilter);
TransactionLegacy.open(opendb).close();