link_CM02_t **routing_table = NULL;
int *routing_table_size = NULL;
static link_CM02_t loopback = NULL;
+double sg_tcp_gamma = 0.0;
+
static void create_routing_table(void)
{
action->weight += delta;
if (action->rate < 0)
lmm_update_variable_bound(network_maxmin_system, action->variable,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->lat_current));
+ sg_tcp_gamma / (2.0 * action->lat_current));
else
lmm_update_variable_bound(network_maxmin_system, action->variable,
min(action->rate,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->lat_current)));
+ sg_tcp_gamma / (2.0 * action->lat_current)));
if (!(action->suspended))
lmm_update_variable_weight(network_maxmin_system, action->variable,
action->weight);
action->generic_action.start = surf_get_clock();
action->generic_action.finish = -1.0;
action->generic_action.model_type = (surf_model_t) surf_network_model;
- action->suspended = 0; /* Should be useless because of the
+ action->suspended = 0; /* Should be useless because of the
calloc but it seems to help valgrind... */
action->generic_action.state_set =
surf_network_model->common_public->states.running_action_set;
if (action->rate < 0) {
if (action->lat_current > 0)
lmm_update_variable_bound(network_maxmin_system, action->variable,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->lat_current));
+ sg_tcp_gamma / (2.0 * action->lat_current));
else
lmm_update_variable_bound(network_maxmin_system, action->variable,
-1.0);
if (action->lat_current > 0)
lmm_update_variable_bound(network_maxmin_system, action->variable,
min(action->rate,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->lat_current)));
+ sg_tcp_gamma / (2.0 * action->lat_current)));
else
lmm_update_variable_bound(network_maxmin_system, action->variable,
action->rate);