- static double last_warned_latency = sg_surf_precision;
- if (link->latency != 0.0 && link->latency < last_warned_latency) {
- XBT_WARN("Latency for link %s is smaller than surf/precision (%g < %g)."
- " For more accuracy, consider setting \"--cfg=surf/precision:%g\".",
- link_name.c_str(), link->latency, sg_surf_precision, link->latency);
- last_warned_latency = link->latency;
- }
- simgrid::kernel::resource::LinkImpl* l =
- surf_network_model->create_link(link_name, link->bandwidths, link->latency, link->policy);
+ std::unordered_map<std::string, std::string> props;
+ if (args->properties)
+ for (auto const& elm : *args->properties)
+ props.insert({elm.first, elm.second});