-/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2013-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
void StandardLinkImpl::latency_check(double latency) const
{
- static double last_warned_latency = sg_surf_precision;
+ static double last_warned_latency = sg_precision_timing;
if (latency != 0.0 && 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\".",
- get_cname(), latency, sg_surf_precision, latency);
+ get_cname(), latency, sg_precision_timing, latency);
last_warned_latency = latency;
}
}
}
get_constraint()->set_concurrency_limit(limit);
}
+int StandardLinkImpl::get_concurrency_limit() const
+{
+ return get_constraint()->get_concurrency_limit();
+}
} // namespace simgrid::kernel::resource