X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5bcb2953d5a0cc02aa2004a429f126541cb760df..5397eadb7c0c0482c2a0e658f772d3c165f4a44a:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 342c6e5264..f5182c3e54 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -341,14 +341,14 @@ int CpuCas01::getNbPstates() return xbt_dynar_length(p_powerPeakList); } -void CpuCas01::setPowerPeakAt(int pstate_index) +void CpuCas01::setPstate(int pstate_index) { xbt_dynar_t plist = p_powerPeakList; xbt_assert((pstate_index <= (int)xbt_dynar_length(plist)), "Invalid parameters (pstate index out of bounds)"); - double new_power_peak = xbt_dynar_get_as(plist, pstate_index, double); + double new_pstate = xbt_dynar_get_as(plist, pstate_index, double); m_pstate = pstate_index; - m_powerPeak = new_power_peak; + m_powerPeak = new_pstate; } /**********