Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make k:r:Cpu::speed_per_pstate_ private as it should
[simgrid.git] / src / surf / cpu_interface.cpp
index a8b793d..7fffcb5 100644 (file)
@@ -75,7 +75,11 @@ Cpu::Cpu(kernel::resource::Model* model, simgrid::s4u::Host* host, kernel::lmm::
   }
 }
 
-Cpu::~Cpu() = default;
+Cpu::~Cpu()
+{
+  if (get_model() == surf_cpu_model_pm)
+    speed_per_pstate_.clear();
+}
 
 int Cpu::get_pstates_count()
 {