return success;
}
private static boolean isNotRunning(Cloudlet.Status status) {
return status == Cloudlet.Status.CANCELED || status == Cloudlet.Status.PAUSED || status == Cloudlet.Status.SUCCESS;
}
<BUG>public long getRemainingCloudletLength() {
long length = cloudlet.getTotalLength() * Conversion.MILLION - instructionsFinishedSoFar;
if (length < 0) {
return 0;
}
return (long) Math.floor(length / Conversion.MILLION);</BUG>
}

return success;
}
private static boolean isNotRunning(Cloudlet.Status status) {
return status == Cloudlet.Status.CANCELED || status == Cloudlet.Status.PAUSED || status == Cloudlet.Status.SUCCESS;
}
public long getRemainingCloudletLength() {
final long remainingMI = cloudlet.getLength() - (instructionsFinishedSoFar / (long)Conversion.MILLION);
return (remainingMI < 0 ? 0 : remainingMI);
}
