X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/90680837ebef1bd470bd846a684b28a7aff1ab90..95ed9f116988b265540bb92e8de3666ba60ab533:/src/msg/msg_task.cpp diff --git a/src/msg/msg_task.cpp b/src/msg/msg_task.cpp index 03e9004a36..0d35d731d5 100644 --- a/src/msg/msg_task.cpp +++ b/src/msg/msg_task.cpp @@ -221,7 +221,7 @@ msg_task_t MSG_task_create(const char *name, double flop_amount, double message_ * A constructor for #msg_task_t taking six arguments. * * @beginrst - * See :cpp:func:`void simgrid::s4u::this_actor::parallel_execute(int, s4u::Host**, double*, double*)` for + * See :ref:`simgrid::s4u::this_actor::parallel_execute() ` for * the exact semantic of the parameters. * @endrst * @@ -700,7 +700,7 @@ double MSG_task_get_remaining_work_ratio(const_msg_task_t task) */ double MSG_task_get_flops_amount(const_msg_task_t task) { - if (task->compute != nullptr) { + if (task->compute != nullptr && task->compute->get_state() == simgrid::s4u::Activity::State::STARTED) { return task->compute->get_remaining(); } else { // Not started or already done. @@ -778,7 +778,7 @@ void MSG_task_set_bound(msg_task_t task, double bound) * (or with #TRACE_category_with_color). * * @beginrst - * See :ref:`outcomes_vizu` for details on how to trace the (categorized) resource utilization. + * See :ref:`outcome_vizu` for details on how to trace the (categorized) resource utilization. * @endrst * * @param task the task that is going to be categorized