Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorArnaud Legrand <arnaud.legrand@imag.fr>
Fri, 2 Mar 2012 13:34:04 +0000 (14:34 +0100)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Mon, 5 Mar 2012 11:04:50 +0000 (12:04 +0100)
src/surf/network.c

index fdcac41..9f3b077 100644 (file)
@@ -56,7 +56,7 @@ e_UM_t network_update_mechanism = UM_UNDEFINED;
 static int net_selective_update = 0;
 
 static int net_action_is_suspended(surf_action_t action);
-static void update_action_remaining(double now);
+static void update_action_remaining_lazy(double now);
 
 static xbt_swag_t net_modified_set = NULL;
 static xbt_heap_t net_action_heap = NULL;
@@ -378,11 +378,11 @@ int net_get_link_latency_limited(surf_action_t action)
 double net_action_get_remains(surf_action_t action)
 {
   if (network_update_mechanism == UM_LAZY)      /* update remains before return it */
-    update_action_remaining(surf_get_clock());
+    update_action_remaining_lazy(surf_get_clock());
   return action->remains;
 }
 
-static void update_action_remaining(double now)
+static void update_action_remaining_lazy(double now)
 {
   surf_action_network_CM02_t action = NULL;
   double delta = 0.0;
@@ -462,7 +462,7 @@ static double net_share_resources_lazy(double now)
   XBT_DEBUG
       ("Before share resources, the size of modified actions set is %d",
        xbt_swag_size(net_modified_set));
-  update_action_remaining(now);
+  update_action_remaining_lazy(now);
 
   lmm_solve(network_maxmin_system);