Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make the energy plugin usable with ptask (but not DVFS) (fix #27)
[simgrid.git] / src / surf / surf_c_bindings.cpp
index c709cca..5dc27ce 100644 (file)
@@ -283,14 +283,14 @@ double surf_host_get_power_peak_at(sg_host_t host, int pstate_index){
 }
 
 int surf_host_get_nb_pstates(sg_host_t host){
-  return sg_host_surfcpu(host)->getNbPstates();
+  return sg_host_surfcpu(host)->getNbPStates();
 }
 
 void surf_host_set_pstate(sg_host_t host, int pstate_index){
-       sg_host_surfcpu(host)->setPstate(pstate_index);
+       sg_host_surfcpu(host)->setPState(pstate_index);
 }
 int surf_host_get_pstate(sg_host_t host){
-  return sg_host_surfcpu(host)->getPstate();
+  return sg_host_surfcpu(host)->getPState();
 }
 
 using simgrid::energy::HostEnergy;