Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
call updateRemaining when the action is suspended (fix #123)
authorFabien Chaix <chaix@ics.forth.gr>
Fri, 2 Dec 2016 13:30:57 +0000 (05:30 -0800)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 2 Dec 2016 22:54:26 +0000 (23:54 +0100)
commite85fd815f2a40f200482bef6f7217e7bc1e45a67
tree5e25ef3c16eb3485028e467123d6669394e06c53
parentb81cb62d1e7175977e71adf03eb81503235aa746
call updateRemaining when the action is suspended (fix #123)

if not, the LMM is giving the right results, but surf does not notice.

Thus the fix does not touch LMM, only surf_interface.cpp. Note that
suspend has the specificity that we cannot estimate when it will end.
Thus it does not seem appropriate to use the nextOccuringEventLazy
method which is essentially trying to find when will be the next step.
Instead I propose to call updateReaminingLazy from the suspend
function.
src/surf/surf_interface.cpp