From: Martin Quinson Date: Mon, 26 Mar 2018 17:14:02 +0000 (+0200) Subject: We are in UM=Lazy, that was tested 2 lines above X-Git-Tag: v3.20~627^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3761bdbb6e2688c8f277320cf0d1a0d78da8f597 We are in UM=Lazy, that was tested 2 lines above --- diff --git a/src/kernel/resource/Action.cpp b/src/kernel/resource/Action.cpp index 99e9ddf888..919e06e54d 100644 --- a/src/kernel/resource/Action.cpp +++ b/src/kernel/resource/Action.cpp @@ -161,8 +161,7 @@ void Action::suspend() get_model()->getMaxminSystem()->update_variable_weight(get_variable(), 0.0); if (get_model()->getUpdateMechanism() == UM_LAZY) { heapRemove(get_model()->getActionHeap()); - if (get_model()->getUpdateMechanism() == UM_LAZY && state_set_ == get_model()->getRunningActionSet() && - sharing_priority_ > 0) { + if (state_set_ == get_model()->getRunningActionSet() && sharing_priority_ > 0) { // If we have a lazy model, we need to update the remaining value accordingly update_remains_lazy(surf_get_clock()); }