bwsw commented on a change in pull request #2266: Kvm host RAM overprovisioning
URL: https://github.com/apache/cloudstack/pull/2266#discussion_r138582009
##########
File path:
plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaResponseBuilderImpl.java
##########
@@ -523,14 +523,7 @@ public Date startOfNextDay(Date dt) {
@Override
public Date startOfNextDay() {
- Calendar c = Calendar.getInstance();
- c.setTime(new Date());
- c.add(Calendar.DATE, 1);
- c.set(Calendar.HOUR, 0);
- c.set(Calendar.MINUTE, 0);
- c.set(Calendar.SECOND, 0);
- c.set(Calendar.MILLISECOND, 0);
- return c.getTime();
+ return startOfNextDay(new Date());
Review comment:
@wido unrelated code is removed from PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services