X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/771173935e00663e8f6ae0a903e5b38f3d8abf6e..268aabc05cf124783cd4972c9bc3d8b735ce5f95:/src/surf/network_interface.cpp diff --git a/src/surf/network_interface.cpp b/src/surf/network_interface.cpp index 4376384ba6..0996ae36b8 100644 --- a/src/surf/network_interface.cpp +++ b/src/surf/network_interface.cpp @@ -201,13 +201,13 @@ Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t prop Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint, - tmgr_history_t history, + sg_future_evt_set_t fes, tmgr_trace_t state_trace) : Resource(model, name, constraint), PropertyHolder(props) { if (state_trace) - p_stateEvent = tmgr_history_add_trace(history, state_trace, 0.0, 0, this); + p_stateEvent = fes->add_trace(state_trace, 0.0, this); links->insert({name, this}); XBT_DEBUG("Create link '%s'",name);