Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
CommWaitTransition mailbox is now valid
[simgrid.git] / src / plugins / host_dvfs.cpp
index 8d3ef16902b8d5813d272aabaa44a353f8d51a6b..db1af095e7cdf670f2cb53005c6afc6076f1fdf1 100644 (file)
@@ -63,7 +63,7 @@ static simgrid::config::Flag<int>
 
 */
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_plugin_dvfs, surf, "Logging specific to the SURF HostDvfs plugin");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(host_dvfs, kernel, "Logging specific to the HostDvfs plugin");
 
 namespace simgrid {
 namespace plugin {
@@ -299,8 +299,8 @@ public:
       if (activity.get_host() == get_host())
         pre_task();
     });
-    simgrid::s4u::Activity::on_completion_cb([this](simgrid::s4u::Activity& activity) {
-      const auto* exec = dynamic_cast<simgrid::s4u::Exec*>(&activity);
+    simgrid::s4u::Activity::on_completion_cb([this](simgrid::s4u::Activity const& activity) {
+      const auto* exec = dynamic_cast<simgrid::s4u::Exec const*>(&activity);
       if (exec == nullptr) // Only Execs are concerned here
         return;
       // For more than one host (not yet supported), we can access the host via