Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[NS3, trace] tracing the correct value of resource utilization based on NS3 network...
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 5 Sep 2011 14:13:05 +0000 (16:13 +0200)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 5 Sep 2011 14:13:05 +0000 (16:13 +0200)
src/surf/network_ns3.c

index 16df513..0d18ffd 100644 (file)
@@ -453,7 +453,7 @@ static void ns3_update_actions_state(double now, double delta)
                TRACE_surf_link_set_utilization ((*link)->generic_resource.name,
                    action->generic_action.data,
                    (surf_action_t) action,
-                   (data_delta_sent),
+                   (data_delta_sent)/delta,
                    now-delta,
                    delta);
              }