Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake_case the s4u::Host signals
[simgrid.git] / src / surf / plugins / host_dvfs.cpp
index e9d98bc..e5ea579 100644 (file)
@@ -42,7 +42,7 @@ public:
   void init()
   {
     const char* local_sampling_rate_config = host_->getProperty(property_sampling_rate);
-    double global_sampling_rate_config     = simgrid::config::get_config<double>(property_sampling_rate);
+    double global_sampling_rate_config     = simgrid::config::get_value<double>(property_sampling_rate);
     if (local_sampling_rate_config != nullptr) {
       sampling_rate = std::stod(local_sampling_rate_config);
     } else {
@@ -187,20 +187,20 @@ public:
 
 /**
  *  Add this to your host tag:
- *    - <prop id="plugin/dvfs/governor" value="performance" />
+ *    - \<prop id="plugin/dvfs/governor" value="performance" /\>
  *
  *  Valid values as of now are: performance, powersave, ondemand, conservative
  *  It doesn't matter if you use uppercase or lowercase.
  *
  *  For the sampling rate, use this:
  *
- *    - <prop id="plugin/dvfs/sampling_rate" value="2" />
+ *    - \<prop id="plugin/dvfs/sampling_rate" value="2" /\>
  *
  *  This will run the update() method of the specified governor every 2 seconds
  *  on that host.
  *
- *  These properties can also be used within the <config> tag to configure
- *  these values globally. Using them within the <host> will overwrite this
+ *  These properties can also be used within the \<config\> tag to configure
+ *  these values globally. Using them within the \<host\> will overwrite this
  *  global configuration
  */
 class HostDvfs {
@@ -245,7 +245,7 @@ static void on_host_added(simgrid::s4u::Host& host)
       dvfs_governor = std::string(daemon_proc->get_host()->getProperty(property_governor));
       boost::algorithm::to_lower(dvfs_governor);
     } else {
-      dvfs_governor = simgrid::config::get_config<std::string>(property_governor);
+      dvfs_governor = simgrid::config::get_value<std::string>(property_governor);
       boost::algorithm::to_lower(dvfs_governor);
     }
 
@@ -303,7 +303,7 @@ void sg_host_dvfs_plugin_init()
 
   sg_host_load_plugin_init();
 
-  simgrid::s4u::Host::onCreation.connect(&on_host_added);
+  simgrid::s4u::Host::on_creation.connect(&on_host_added);
   simgrid::config::declare_flag<double>(
       property_sampling_rate, "How often should the dvfs plugin check whether the frequency needs to be changed?", 0.1);
   simgrid::config::declare_flag<std::string>(