Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
type change + rename function
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 14 Sep 2021 07:38:18 +0000 (09:38 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Fri, 17 Sep 2021 16:40:37 +0000 (18:40 +0200)
examples/cpp/engine-filtering/s4u-engine-filtering.cpp

index ac510a6..a57ba54 100644 (file)
@@ -49,7 +49,7 @@ public:
 
   bool operator()(simgrid::s4u::Host* host) { return host->get_pstate() != host_list.at(host); }
 
-  double get_old_speed(simgrid::s4u::Host* host) { return host_list.at(host); }
+  unsigned long get_old_speed_state(simgrid::s4u::Host* host) { return host_list.at(host); }
 };
 }
 int main(int argc, char* argv[])
@@ -81,7 +81,7 @@ int main(int argc, char* argv[])
 
   for (auto& host : list)
     XBT_INFO("The following hosts changed their frequency: %s (from %.1ff to %.1ff)", host->get_cname(),
-             host->get_pstate_speed(filter.get_old_speed(host)), host->get_speed());
+             host->get_pstate_speed(filter.get_old_speed_state(host)), host->get_speed());
 
   /* You can also just use any regular function (namespaced on need) to filter  */
   list = e.get_filtered_hosts(filter::filter_speed_more_than_50Mf);