Commit 0408e710 authored by Anton Beloglazov's avatar Anton Beloglazov

Fixed a bug in the PowerDatacenter::updateCloudletProcessing() method that…

Fixed a bug in the PowerDatacenter::updateCloudletProcessing() method that caused removal of completed VMs before the Cloudlets have been sent to the broker. This didn't affect the simulation results themselves, just the output.
parent 50eda753
......@@ -132,15 +132,6 @@ public class PowerDatacenter extends Datacenter {
setPower(getPower() + timeframePower);
/** Remove completed VMs **/
for (PowerHost host : this.<PowerHost>getHostList()) {
for (Vm vm : host.getCompletedVms()) {
getVmAllocationPolicy().deallocateHostForVm(vm);
getVmList().remove(vm);
Log.printLine("VM #" + vm.getId() + " has been deallocated from host #" + host.getId());
}
}
Log.printLine();
if (!isDisableMigrations()) {
......
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