X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f489606e68f27d670f92d3a8871a116d29c6c9fd..c1ddad635a1a24ad191a0b832843dfe92e2974a0:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index f5508833bd..1b4095a89c 100644 --- 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); - if (suspended_ != Action::SuspendStates::sleeping) { + if (is_running()) { get_model()->get_maxmin_system()->update_variable_weight(get_variable(), 0.0); - suspended_ = Action::SuspendStates::suspended; + set_suspend_state(Action::SuspendStates::SUSPENDED); } XBT_OUT(); }