Commit ec259845 authored by Nikolay's avatar Nikolay

Fixed an error in the previous commit.

parent 4075c6b2
...@@ -347,9 +347,11 @@ public class DatacenterBroker extends SimEntity { ...@@ -347,9 +347,11 @@ public class DatacenterBroker extends SimEntity {
vm = getVmsCreatedList().get(vmIndex); vm = getVmsCreatedList().get(vmIndex);
} else { // submit to the specific vm } else { // submit to the specific vm
vm = VmList.getById(getVmsCreatedList(), cloudlet.getVmId()); vm = VmList.getById(getVmsCreatedList(), cloudlet.getVmId());
if (vm == null && !Log.isDisabled()) { // vm was not created if (vm == null) { // vm was not created
Log.printConcatLine(CloudSim.clock(), ": ", getName(), ": Postponing execution of cloudlet ", if(!Log.isDisabled()) {
Log.printConcatLine(CloudSim.clock(), ": ", getName(), ": Postponing execution of cloudlet ",
cloudlet.getCloudletId(), ": bount VM not available"); cloudlet.getCloudletId(), ": bount VM not available");
}
continue; continue;
} }
} }
......
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