Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] fix categorized resource utilization tracing (follow the new internal API)
[simgrid.git] / src / surf / network.c
index 493623e..c925f3b 100644 (file)
@@ -563,12 +563,11 @@ static void net_update_actions_state_full(double now, double delta)
       link_CM02_t link;
       unsigned int i;
       xbt_dynar_foreach(route, i, link) {
-        TRACE_surf_link_set_utilization(link->lmm_resource.
-            generic_resource.name,
-            GENERIC_ACTION(action).data,
-            (surf_action_t) action,
-            lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable),
-            now - delta, delta);
+        TRACE_surf_link_set_utilization(link->lmm_resource.generic_resource.name,
+                                        ((surf_action_t)action)->category,
+                                        lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable),
+                                        now - delta,
+                                        delta);
       }
     }
 #endif