X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3afa50311269466977a7dcc785e9afd7ce4028a7..7049f373e589ff9ffa336720a789f82ef8930aa7:/src/surf/network_constant.cpp diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index dcbc87f1d0..1f97acca37 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -66,8 +66,8 @@ void NetworkConstantModel::updateActionsState(double /*now*/, double delta) if (action->getMaxDuration() != NO_MAX_DURATION) action->updateMaxDuration(delta); - if (((action->getRemainsNoUpdate() <= 0) || - ((action->getMaxDuration() != NO_MAX_DURATION) && (action->getMaxDuration() <= 0)))) { + if ((action->getRemainsNoUpdate() <= 0) || + ((action->getMaxDuration() != NO_MAX_DURATION) && (action->getMaxDuration() <= 0))) { action->finish(Action::State::done); } }