Commit dfa5037e authored by rodrigo.calheiros's avatar rodrigo.calheiros

Fixed bug when searching for Cloudlets to cancel in cloudletSchedulerTimeshared

parent 2d5dfca8
......@@ -161,6 +161,7 @@ public class CloudletSchedulerTimeShared extends CloudletScheduler {
}
// Then searches in the exec list
position=0;
for (ResCloudlet rcl : getCloudletExecList()) {
if (rcl.getCloudletId() == cloudletId) {
found = true;
......@@ -177,11 +178,11 @@ public class CloudletSchedulerTimeShared extends CloudletScheduler {
rcl.setCloudletStatus(Cloudlet.CANCELED);
}
return rcl.getCloudlet();
}
// Now, looks in the paused queue
found = false;
position=0;
for (ResCloudlet rcl : getCloudletPausedList()) {
if (rcl.getCloudletId() == cloudletId) {
found = true;
......
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