From: schnorr Date: Tue, 6 Mar 2012 15:00:58 +0000 (+0100) Subject: put the log message in the correct place X-Git-Tag: v3_7~315^2~16 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9f4ddf3b15fccdab0f2666bf44061e7fd8305f49 put the log message in the correct place --- diff --git a/src/surf/cpu_cas01.c b/src/surf/cpu_cas01.c index b9cf415a75..10eb871533 100644 --- a/src/surf/cpu_cas01.c +++ b/src/surf/cpu_cas01.c @@ -350,7 +350,6 @@ static void cpu_update_actions_state_lazy(double now, double delta) action = xbt_heap_pop(cpu_action_heap); XBT_DEBUG("Action %p: finish", action); GENERIC_ACTION(action).finish = surf_get_clock(); - /* set the remains to 0 due to precision problems when updating the remaining amount */ #ifdef HAVE_TRACING if (TRACE_is_enabled()) { cpu_Cas01_t cpu = @@ -364,6 +363,7 @@ static void cpu_update_actions_state_lazy(double now, double delta) now - GENERIC_LMM_ACTION(action).last_update); } #endif + /* set the remains to 0 due to precision problems when updating the remaining amount */ GENERIC_ACTION(action).remains = 0; cpu_action_state_set((surf_action_t) action, SURF_ACTION_DONE); heap_remove(action);