Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix bugs due to subVariable method
[simgrid.git] / src / instr / instr_resource_utilization.cpp
index c7b0bcd..bebb4cd 100644 (file)
@@ -36,10 +36,10 @@ static void __TRACE_surf_check_variable_set_to_zero(double now, const char *vari
 }
 
 static void instr_event (double now, double delta, type_t variable, container_t resource, double value)
 }
 
 static void instr_event (double now, double delta, type_t variable, container_t resource, double value)
-{
+{ s_subVariable n;
   __TRACE_surf_check_variable_set_to_zero(now, variable->name, resource->name);
   new_pajeAddVariable(now, resource, variable, value);
   __TRACE_surf_check_variable_set_to_zero(now, variable->name, resource->name);
   new_pajeAddVariable(now, resource, variable, value);
-  new_pajeSubVariable(now + delta, resource, variable, value);
+  n.new_pajeSubVariable(now + delta, resource, variable, value);
 }
 
 /* TRACE_surf_link_set_utilization: entry point from SimGrid */
 }
 
 /* TRACE_surf_link_set_utilization: entry point from SimGrid */