A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanups in Action::State
[simgrid.git]
/
src
/
surf
/
network_cm02.cpp
diff --git
a/src/surf/network_cm02.cpp
b/src/surf/network_cm02.cpp
index
4fde97a
..
761f90d
100644
(file)
--- a/
src/surf/network_cm02.cpp
+++ b/
src/surf/network_cm02.cpp
@@
-349,7
+349,7
@@
void NetworkCm02Link::apply_event(tmgr_trace_event_t triggered, double value)
while ((var = get_constraint()->get_variable(&elem))) {
Action* action = static_cast<Action*>(var->get_id());
while ((var = get_constraint()->get_variable(&elem))) {
Action* action = static_cast<Action*>(var->get_id());
- if (action->get_state() == Action::State::
running || action->get_state() == Action::State::ready
) {
+ if (action->get_state() == Action::State::
inited || action->get_state() == Action::State::running
) {
action->set_finish_time(now);
action->set_state(Action::State::failed);
}
action->set_finish_time(now);
action->set_state(Action::State::failed);
}