mirror of https://github.com/apache/cloudstack.git
Fixed code review comments
This commit is contained in:
parent
b9946c28e7
commit
fc79a87050
|
|
@ -712,7 +712,6 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager,
|
|||
for (VMInstanceVO vm : vmsByLastHostId) {
|
||||
Float cpuOvercommitRatio = 1.0f;
|
||||
Float ramOvercommitRatio = 1.0f;
|
||||
// use creation time if update time is null
|
||||
long lastModificationTime = Optional.ofNullable(vm.getUpdateTime()).orElse(vm.getCreated()).getTime();
|
||||
long secondsSinceLastUpdate = (DateUtil.currentGMTTime().getTime() - lastModificationTime) / 1000;
|
||||
if (secondsSinceLastUpdate < _vmCapacityReleaseInterval) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue