Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this should allow the tracing of resource usage with this model
[simgrid.git] / src / surf / network_ns3.cpp
index 6a56dbd..ce78407 100644 (file)
@@ -234,8 +234,8 @@ void NetworkNS3Model::update_actions_state(double now, double delta)
 
       action->src_->routeTo(action->dst_, route, nullptr);
       for (auto const& link : route)
-        TRACE_surf_link_set_utilization(link->get_cname(), action->get_category(), (data_delta_sent) / delta,
-                                        now - delta, delta);
+        TRACE_surf_resource_set_utilization("LINK", "bandwidth_used", link->get_cname(), action->get_category(),
+                                            (data_delta_sent) / delta, now - delta, delta);
 
       action->lastSent_ = sgFlow->sentBytes_;
     }