public void updateCloudletFinishedSoFar(long numberOfExecutedInstructions) {
if(numberOfExecutedInstructions <= 0)
return;
this.instructionsFinishedSoFar += numberOfExecutedInstructions;
this.instructionsFinishedSoFar =
<BUG>Math.min(this.instructionsFinishedSoFar, cloudlet.getTotalLength()* Conversion.MILLION);
final double finishedSoFarByPeMI = instructionsFinishedSoFar / Conversion.MILLION;</BUG>
cloudlet.setFinishedLengthSoFar((long)finishedSoFarByPeMI);
}
public double getCloudletArrivalTime() {

public void updateCloudletFinishedSoFar(long numberOfExecutedInstructions) {
if(numberOfExecutedInstructions <= 0)
return;
this.instructionsFinishedSoFar += numberOfExecutedInstructions;
this.instructionsFinishedSoFar =
Math.min(this.instructionsFinishedSoFar, cloudlet.getLength()*Conversion.MILLION);
final double finishedSoFarByPeMI = instructionsFinishedSoFar / Conversion.MILLION;
cloudlet.setFinishedLengthSoFar((long)finishedSoFarByPeMI);
}
public double getCloudletArrivalTime() {
