]> AND Public Git Repository - simgrid.git/blobdiff - src/plugins/link_energy.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
System: fix modified_set_ when selective_update is active
[simgrid.git] / src / plugins / link_energy.cpp
index 23f6de0c39bb37ef87c4773a0bdfbad1b96239d9..50464200d07d65c2b1093a20581747c65b2f3d28 100644 (file)
@@ -138,7 +138,7 @@ double LinkEnergy::get_power() const
 double LinkEnergy::get_consumed_energy()
 {
   if (last_updated_ < simgrid::s4u::Engine::get_clock()) // We need to simcall this as it modifies the environment
-    kernel::actor::simcall(std::bind(&LinkEnergy::update, this));
+    kernel::actor::simcall_answered(std::bind(&LinkEnergy::update, this));
   return this->total_energy_;
 }
 } // namespace plugin