X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d8612c62eaa05c2a8f916ea84eaab8a30b16826..4052b6d9960bd9792127d006c4f359b946cb7baa:/src/surf/plugins/link_energy.cpp diff --git a/src/surf/plugins/link_energy.cpp b/src/surf/plugins/link_energy.cpp index 32dff1235b..bce16c3181 100644 --- a/src/surf/plugins/link_energy.cpp +++ b/src/surf/plugins/link_energy.cpp @@ -135,7 +135,7 @@ double LinkEnergy::getPower() double LinkEnergy::getConsumedEnergy() { if (lastUpdated_ < surf_get_clock()) // We need to simcall this as it modifies the environment - simgrid::simix::kernelImmediate(std::bind(&LinkEnergy::update, this)); + simgrid::simix::simcall(std::bind(&LinkEnergy::update, this)); return this->totalEnergy_; } }