Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Simplify by removing a variable
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 8 Aug 2018 11:59:51 +0000 (13:59 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 8 Aug 2018 12:07:38 +0000 (14:07 +0200)
src/plugins/host_dvfs.cpp

index 483a9c6..faeb63c 100644 (file)
@@ -96,11 +96,10 @@ public:
   void init()
   {
     const char* local_sampling_rate_config = host_->get_property(cfg_sampling_rate.get_name());
   void init()
   {
     const char* local_sampling_rate_config = host_->get_property(cfg_sampling_rate.get_name());
-    double global_sampling_rate_config     = cfg_sampling_rate;
     if (local_sampling_rate_config != nullptr) {
       sampling_rate_ = std::stod(local_sampling_rate_config);
     } else {
     if (local_sampling_rate_config != nullptr) {
       sampling_rate_ = std::stod(local_sampling_rate_config);
     } else {
-      sampling_rate_ = global_sampling_rate_config;
+      sampling_rate_ = cfg_sampling_rate;
     }
   }
 
     }
   }