int max_dur_flag = 0;
if (GENERIC_ACTION(action).state_set !=
- surf_network_model->states.running_action_set) {
+ surf_network_model->states.running_action_set)
continue;
- }
/* bogus priority, skip it */
- if (GENERIC_ACTION(action).priority <= 0) {
+ if (GENERIC_ACTION(action).priority <= 0)
continue;
- }
min = -1;
value = lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable);
GENERIC_ACTION(action).max_duration);
if (action->index_heap >= 0) {
- heap_remove((surf_action_network_CM02_t) action);
+ heap_remove(action);
}
if (min != -1) {
}
//hereafter must have already the min value for this resource model
- if (xbt_heap_size(net_action_heap) > 0) {
+ if (xbt_heap_size(net_action_heap) > 0)
min = xbt_heap_maxkey(net_action_heap) - now;
- } else {
+ else
min = -1;
- }
XBT_DEBUG("The minimum with the HEAP %lf", min);