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().
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().