Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better warning message for max-depth
[simgrid.git] / src / plugins / host_load.cpp
index c0eb52032629805ea03ba1b18ca0fe9eef26daf2..a19b7202c532ff38c247580120743e628a963ae6 100644 (file)
@@ -121,7 +121,7 @@ void HostLoad::update()
   // This loop updates the flops that the host executed for the ongoing computations
   auto iter = begin(current_activities);
   while (iter != end(current_activities)) {
-    auto& activity                         = iter->first;  // Just an alias
+    const auto& activity                   = iter->first;  // Just an alias
     auto& remaining_cost_after_last_update = iter->second; // Just an alias
     auto& action                           = activity->model_action_;
     auto current_iter                      = iter;