Commit fbe358a8 authored by Benardi's avatar Benardi
Browse files

Merge branch 'sla-simulation' of...

Merge branch 'sla-simulation' of https://git.lsd.ufcg.edu.br/lenovo-autonomic/cloudsimplus into sla-simulation
parents 9ee46fbd dcab0f07
......@@ -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