Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make 2 more fields of k:r:Cpu protected (should be private)
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 21 May 2018 19:11:10 +0000 (21:11 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 21 May 2018 19:11:10 +0000 (21:11 +0200)
src/surf/cpu_interface.hpp
src/surf/plugins/host_energy.cpp

index 83115b9..f041d8a 100644 (file)
@@ -142,6 +142,7 @@ public:
    */
   virtual void set_speed_trace(tmgr_trace_t trace);
 
+protected:
   tmgr_trace_event_t state_event_ = nullptr;
   Metric speed_                  = {1.0, 0, nullptr};
 };
index f346576..8e3fa2d 100644 (file)
@@ -171,7 +171,7 @@ void HostEnergy::update()
 
     XBT_DEBUG("[update_energy of %s] period=[%.2f-%.2f]; current power peak=%.0E flop/s; consumption change: %.2f J -> "
               "%.2f J",
-              host->get_cname(), start_time, finish_time, host->pimpl_cpu->speed_.peak, previous_energy,
+              host->get_cname(), start_time, finish_time, host->pimpl_cpu->getSpeed(1.0), previous_energy,
               energy_this_step);
   }