Fixed code review comments

This commit is contained in:
mprokopchuk 2024-09-09 15:56:15 -07:00
parent b9946c28e7
commit fc79a87050
1 changed files with 0 additions and 1 deletions

View File

@ -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) {