git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2179
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
action->latency = 0.0;
}
if ((action->latency == 0.0) && !(action->suspended))
action->latency = 0.0;
}
if ((action->latency == 0.0) && !(action->suspended))
- lmm_update_variable_weight(maxmin_system, action->variable, 1.0);
+ lmm_update_variable_weight(maxmin_system, action->variable,
+ action->lat_current);
}
surf_double_update(&(action->generic_action.remains),
lmm_variable_getvalue(action->variable) * deltap);
}
surf_double_update(&(action->generic_action.remains),
lmm_variable_getvalue(action->variable) * deltap);
surf_double_update(&(deltap), action->latency);
action->latency = 0.0;
}
surf_double_update(&(deltap), action->latency);
action->latency = 0.0;
}
- if ((action->latency == 0.0) && !(action->suspended))
- lmm_update_variable_weight(maxmin_system, action->variable, 1.0);
+ if ((action->latency == 0.0) && !(action->suspended)) {
+ if((action)->lat_current==0.0)
+ lmm_update_variable_weight(maxmin_system,action->variable, 1.0);
+ else
+ lmm_update_variable_weight(maxmin_system, action->variable,
+ action->lat_current);
+ }
}
surf_double_update(&(action->generic_action.remains),
lmm_variable_getvalue(action->variable) * deltap);
}
surf_double_update(&(action->generic_action.remains),
lmm_variable_getvalue(action->variable) * deltap);