X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/38f246c4c46920a78ea0af8233449f402c178f04..73e97710413bba3ee2ae8baab0537fbd78811016:/src/surf/cpu_ti.cpp diff --git a/src/surf/cpu_ti.cpp b/src/surf/cpu_ti.cpp index d183dc3f49..c58229ac38 100644 --- a/src/surf/cpu_ti.cpp +++ b/src/surf/cpu_ti.cpp @@ -204,9 +204,9 @@ double CpuTiProfile::solve_simple(double a, double amount) const */ double CpuTiTmgr::get_power_scale(double a) const { - double reduced_a = a - floor(a / last_time_) * last_time_; - long point = CpuTiProfile::binary_search(profile_->time_points_, reduced_a); - kernel::profile::DatedValue val = speed_profile_->get_event_list().at(point); + double reduced_a = a - floor(a / last_time_) * last_time_; + long point = CpuTiProfile::binary_search(profile_->get_time_points(), reduced_a); + profile::DatedValue val = speed_profile_->get_event_list().at(point); return val.value_; }