X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bd1bbd35034c2e93a030a676dc244ad2cf74c70..19e4a01d6e38e856dafa1a08942143a8ec7f5e34:/src/msg/msg_vm.cpp diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 4e485ba3b1..00d1d02f14 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -367,7 +367,7 @@ static double lookup_computed_flop_counts(msg_vm_t vm, int stage_for_fancy_debug for (auto const& elm : vm->pimpl_vm_->dp_objs) { const std::string& key = elm.first; dirty_page_t dp = elm.second; - double remaining = MSG_task_get_flops_amount(dp->task); + double remaining = MSG_task_get_remaining_work_ratio(dp->task); double clock = MSG_get_clock(); @@ -396,7 +396,7 @@ void MSG_host_add_task(msg_host_t host, msg_task_t task) if (vm == nullptr) return; - double remaining = MSG_task_get_flops_amount(task); + double remaining = MSG_task_get_initial_flops_amount(task); std::string key = simgrid::xbt::string_printf("%s-%p", task->name, task); dirty_page_t dp = new s_dirty_page; @@ -426,7 +426,7 @@ void MSG_host_del_task(msg_host_t host, msg_task_t task) /* If we are in the middle of dirty page tracking, we record how much computation has been done until now, and keep * the information for the lookup_() function that will called soon. */ if (vm->pimpl_vm_->dp_enabled) { - double remaining = MSG_task_get_flops_amount(task); + double remaining = MSG_task_get_remaining_work_ratio(task); double clock = MSG_get_clock(); double updated = get_computed(key, vm, dp, remaining, clock); // was host instead of vm