X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/34fca02736fe4770232b5454596e841f27d261e5..ecd5f7562caf1d443bf22788fa5f4fac408776ec:/examples/msg/trace-masterworker/trace-masterworker.c diff --git a/examples/msg/trace-masterworker/trace-masterworker.c b/examples/msg/trace-masterworker/trace-masterworker.c index 2ebf78d686..56cb7a3051 100644 --- a/examples/msg/trace-masterworker/trace-masterworker.c +++ b/examples/msg/trace-masterworker/trace-masterworker.c @@ -53,9 +53,9 @@ static int worker(int argc, char *argv[]) MSG_task_destroy(task); break; } - //adding the value returned by MSG_task_get_compute_duration(task) - //to the variable "task_computation" - TRACE_host_variable_add(MSG_host_get_name(MSG_host_self()), "task_computation", MSG_task_get_flops_amount(task)); + // adding the value returned by MSG_task_get_compute_duration(task) to the variable "task_computation" + TRACE_host_variable_add(MSG_host_get_name(MSG_host_self()), "task_computation", + MSG_task_get_initial_flops_amount(task)); MSG_task_execute(task); MSG_task_destroy(task); task = NULL;