Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
810 stars 492 forks source link

Estimated Finish Time Bug #77

Open atary opened 8 years ago

atary commented 8 years ago

cloudletResume() method in both CloudletSchedulerSpaceShared and CloudletSchedulerTimeShared returns an estimated finish time which includes the current clock: CloudSim.clock()

However this return value is used in Datacenter.processCloudletResume() as the delay value of send(). Delays are relative to current clock as shown below (taken from CloudSim.send()): SimEvent(SimEvent.SEND, clock + delay, src, dest, tag, data);

As a result, current clock is added twice to the event time. cloudletResume() method should return estimated duration to finish (excluding current clock). This is already the case for processCloudletSubmit().