public double updateVmProcessing(double currentTime, List mipsShare) {
………..;
for (ResCloudlet rcl : getCloudletExecList()) {
rcl.updateCloudletFinishedSoFar((long) (getCapacity(mipsShare) * timeSpam * rcl.getNumberOfPes() * Consts.MILLION));
}
if (getCloudletExecList().size() == 0) {
setPreviousTime(currentTime);
return 0.0;
}
………..;
for(int i=0;i<getCloudletExecList().size();i++){
Log.printLine("Execution list: "+getCloudletExecList().size());
long remainingLength = getCloudletExecList().get(i).getRemainingCloudletLength(); //retreive the remaining length;
Log.printLine("Cloudlet:"+rcl.getCloudletId()+":Remaining Length is : "+remainingLength);
}
}
}