series->trace_index = xbt_malloc0(sizeof(int) * total_alloc);
series->trace_value = xbt_malloc0(sizeof(double) * total_alloc);
-/* FIXME: it doesn't work with traces with only one point and periodicity = 0
- * if the trace is always cyclic and periodicity must be > 0 it works */
xbt_dynar_foreach(power_trace->event_list, cpt, val) {
/* delta = the next trace event
* value = state until next event */
surf_action_cpu_ti_t action;
while ((xbt_heap_size(action_heap) > 0)
&& (xbt_heap_maxkey(action_heap) <= now)) {
- DEBUG1("Action %p: finish", action);
action = xbt_heap_pop(action_heap);
+ DEBUG1("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 */
GENERIC_ACTION(action).remains = 0;