in line 257 rcl.getRemainingCloudletLength() is assigned to size, the getRemainingCloudletLength :
which uses getCloudletTotalLength, which already includes getNumberOfPes(). however on line 258 size is multiplied by getNumberOfPes(), making the value wrong.
in line 259 the cloudletLength is updated with size (which is the remaining cloudlet length). but the cloudletFinishedSoFar is not reset to 0. therefore subsequent calls to getRemainingCloudletLength() (like line 276) will get the wrong value since the cloudletFinishedSoFar will be subtracted twice.
This piece of codes in![image](https://user-images.githubusercontent.com/12751429/29610760-cf838952-882d-11e7-90a4-a7dc9e5c824d.png)
cloudletResume
is buggy:rcl.getRemainingCloudletLength()
is assigned tosize
, thegetRemainingCloudletLength
:getCloudletTotalLength
, which already includesgetNumberOfPes()
. however on line 258size
is multiplied bygetNumberOfPes()
, making the value wrong.size
(which is the remaining cloudlet length). but thecloudletFinishedSoFar
is not reset to 0. therefore subsequent calls togetRemainingCloudletLength()
(like line 276) will get the wrong value since the cloudletFinishedSoFar will be subtracted twice.