Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill ALL trailing whitespace (and deprecate a function in Link)
[simgrid.git] / src / surf / plugins / host_dvfs.cpp
index 1f11563..1a169b4 100644 (file)
@@ -107,7 +107,7 @@ public:
  */
 class OnDemand : public Governor {
   /**
-   * See https://elixir.bootlin.com/linux/v4.15.4/source/drivers/cpufreq/cpufreq_ondemand.c 
+   * See https://elixir.bootlin.com/linux/v4.15.4/source/drivers/cpufreq/cpufreq_ondemand.c
    * DEF_FREQUENCY_UP_THRESHOLD and od_update()
    */
   double freq_up_threshold = 0.80;
@@ -233,7 +233,7 @@ static void on_host_added(simgrid::s4u::Host& host)
   if (dynamic_cast<simgrid::s4u::VirtualMachine*>(&host)) // Ignore virtual machines
     return;
 
-  std::string name              = std::string("dvfs-daemon-") + host.getCname();
+  std::string name              = std::string("dvfs-daemon-") + host.get_cname();
   simgrid::s4u::ActorPtr daemon = simgrid::s4u::Actor::createActor(name.c_str(), &host, []() {
     /**
      * This lambda function is the function the actor (daemon) will execute
@@ -242,7 +242,7 @@ static void on_host_added(simgrid::s4u::Host& host)
      */
     simgrid::s4u::ActorPtr daemonProc = simgrid::s4u::Actor::self();
 
-    XBT_DEBUG("DVFS process on %s is a daemon: %d", daemonProc->getHost()->getName().c_str(), daemonProc->isDaemon());
+    XBT_DEBUG("DVFS process on %s is a daemon: %d", daemonProc->getHost()->get_cname(), daemonProc->isDaemon());
 
     std::string dvfs_governor;
     const char* host_conf = daemonProc->getHost()->getProperty(property_governor);
@@ -269,7 +269,7 @@ static void on_host_added(simgrid::s4u::Host& host)
             new simgrid::plugin::dvfs::Powersave(daemonProc->getHost()));
       } else {
         XBT_CRITICAL("No governor specified for host %s, falling back to Performance",
-                     daemonProc->getHost()->getCname());
+                     daemonProc->getHost()->get_cname());
         return std::unique_ptr<simgrid::plugin::dvfs::Governor>(
             new simgrid::plugin::dvfs::Performance(daemonProc->getHost()));
       }