Commit f7f3f15a authored by Anton Beloglazov's avatar Anton Beloglazov

- Small fix

parent 2a72d522
...@@ -765,7 +765,7 @@ public class Datacenter extends SimEntity { ...@@ -765,7 +765,7 @@ public class Datacenter extends SimEntity {
double estimatedFinishTime = scheduler.cloudletSubmit(cl,fileTransferTime); double estimatedFinishTime = scheduler.cloudletSubmit(cl,fileTransferTime);
//if (estimatedFinishTime > 0.0 && estimatedFinishTime < getSchedulingInterval()) { //if this cloudlet is in the exec queue //if (estimatedFinishTime > 0.0 && estimatedFinishTime < getSchedulingInterval()) { //if this cloudlet is in the exec queue
if (estimatedFinishTime > 0.0) { //if this cloudlet is in the exec queue if (estimatedFinishTime > 0.0 && !Double.isInfinite(estimatedFinishTime)) { //if this cloudlet is in the exec queue
//double estimatedFinishTime = (cl.getCloudletTotalLength()/(capacity*cl.getPesNumber())); //time to process the cloudlet //double estimatedFinishTime = (cl.getCloudletTotalLength()/(capacity*cl.getPesNumber())); //time to process the cloudlet
//Log.printLine(estimatedFinishTime+"="+gl.getCloudletLength()+"/("+capacity+"*"+gl.getNumPE()+")"); //Log.printLine(estimatedFinishTime+"="+gl.getCloudletLength()+"/("+capacity+"*"+gl.getNumPE()+")");
estimatedFinishTime += fileTransferTime; estimatedFinishTime += fileTransferTime;
...@@ -924,7 +924,9 @@ public class Datacenter extends SimEntity { ...@@ -924,7 +924,9 @@ public class Datacenter extends SimEntity {
} }
} }
//gurantees a minimal interval before scheduling the event //gurantees a minimal interval before scheduling the event
if (smallerTime<CloudSim.clock()+0.1) smallerTime=CloudSim.clock()+0.1; if (smallerTime<CloudSim.clock()+0.1) {
smallerTime=CloudSim.clock()+0.1;
}
if (smallerTime != Double.MAX_VALUE) { if (smallerTime != Double.MAX_VALUE) {
schedule(getId(), (smallerTime - CloudSim.clock()), CloudSimTags.VM_DATACENTER_EVENT); schedule(getId(), (smallerTime - CloudSim.clock()), CloudSimTags.VM_DATACENTER_EVENT);
......
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