rcl.updateCloudletFinishedSoFar(numberExecutedInstructions);
if (numberExecutedInstructions > 0) {
rcl.setLastProcessingTime(currentTime);
}
}
<BUG>protected long cloudletExecutedLengthForElapsedTime(CloudletExecutionInfo rcl, double currentTime) {
</BUG>
final double actualProcessingTime = (hasCloudletFileTransferTimePassed(rcl, currentTime) ? timeSpan(currentTime) : 0);
<BUG>return (long) (processor.getAvailableMipsByPe() * actualProcessingTime * Conversion.MILLION);
}</BUG>
private boolean hasCloudletFileTransferTimePassed(CloudletExecutionInfo rcl, double currentTime) {

rcl.updateCloudletFinishedSoFar(numberExecutedInstructions);
if (numberExecutedInstructions > 0) {
rcl.setLastProcessingTime(currentTime);
}
}
protected long cloudletExecutedInstructionsForElapsedTime(CloudletExecutionInfo rcl, double currentTime) {
final double actualProcessingTime = (hasCloudletFileTransferTimePassed(rcl, currentTime) ? timeSpan(currentTime) : 0);
return (long) (processor.getAvailableMipsByPe() *
rcl.getCloudlet().getUtilizationOfCpu(currentTime) *
actualProcessingTime * Conversion.MILLION);
}
private boolean hasCloudletFileTransferTimePassed(CloudletExecutionInfo rcl, double currentTime) {
