Commit ae33431c authored by Lucas Cavalcante's avatar Lucas Cavalcante
Browse files

updating migration policy step credit

parent 2d127d23
......@@ -203,8 +203,7 @@ public class VmAllocationPolicyMigrationSla extends VmAllocationPolicyAbstract {
for (Host h : looseSlaHosts) {
for (Vm vm : h.getVmList()) {
// TODO (IF) Create method with code bellow
if (vm.getMonitor().getCumulativeVmViolationTime(clock) + MIGRATION_TIME <=
vm.getMonitor().getMaximumAllowedSlaViolationTime()) {
if (vm.getMonitor().getCumulativeCredit(clock) - MIGRATION_TIME >= 0) {
candidateVmsToMigrate.add(vm);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment