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
please sonar (protected fields) and coding standards (uppercase enum)
[simgrid.git]
/
src
/
surf
/
storage_n11.cpp
diff --git
a/src/surf/storage_n11.cpp
b/src/surf/storage_n11.cpp
index
f550883
..
1b4095a
100644
(file)
--- a/
src/surf/storage_n11.cpp
+++ b/
src/surf/storage_n11.cpp
@@
-146,9
+146,9
@@
void StorageN11Action::cancel()
void StorageN11Action::suspend()
{
XBT_IN("(%p)", this);
void StorageN11Action::suspend()
{
XBT_IN("(%p)", this);
- if (
suspended_ != Action::SuspendStates::sleeping
) {
+ if (
is_running()
) {
get_model()->get_maxmin_system()->update_variable_weight(get_variable(), 0.0);
get_model()->get_maxmin_system()->update_variable_weight(get_variable(), 0.0);
- s
uspended_ = Action::SuspendStates::suspended
;
+ s
et_suspend_state(Action::SuspendStates::SUSPENDED)
;
}
XBT_OUT();
}
}
XBT_OUT();
}