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
Anonymize unused parameters.
[simgrid.git]
/
src
/
surf
/
network_cm02.cpp
diff --git
a/src/surf/network_cm02.cpp
b/src/surf/network_cm02.cpp
index
f590295
..
2f78a0d
100644
(file)
--- a/
src/surf/network_cm02.cpp
+++ b/
src/surf/network_cm02.cpp
@@
-172,7
+172,7
@@
void NetworkCm02Model::update_actions_state_lazy(double now, double /*delta*/)
}
}
}
}
-void NetworkCm02Model::update_actions_state_full(double
now
, double delta)
+void NetworkCm02Model::update_actions_state_full(double
/*now*/
, double delta)
{
for (auto it = std::begin(*get_started_action_set()); it != std::end(*get_started_action_set());) {
NetworkCm02Action& action = static_cast<NetworkCm02Action&>(*it);
{
for (auto it = std::begin(*get_started_action_set()); it != std::end(*get_started_action_set());) {
NetworkCm02Action& action = static_cast<NetworkCm02Action&>(*it);
@@
-199,11
+199,11
@@
void NetworkCm02Model::update_actions_state_full(double now, double delta)
}
action.update_remains(action.get_variable()->get_value() * delta);
}
action.update_remains(action.get_variable()->get_value() * delta);
- if (action.get_max_duration()
>
NO_MAX_DURATION)
+ if (action.get_max_duration()
!=
NO_MAX_DURATION)
action.update_max_duration(delta);
if (((action.get_remains() <= 0) && (action.get_variable()->get_weight() > 0)) ||
action.update_max_duration(delta);
if (((action.get_remains() <= 0) && (action.get_variable()->get_weight() > 0)) ||
- ((action.get_max_duration()
>
NO_MAX_DURATION) && (action.get_max_duration() <= 0))) {
+ ((action.get_max_duration()
!=
NO_MAX_DURATION) && (action.get_max_duration() <= 0))) {
action.finish(Action::State::FINISHED);
}
}
action.finish(Action::State::FINISHED);
}
}