From: Loic Guegan Date: Thu, 5 Sep 2019 09:09:42 +0000 (+0200) Subject: Wifi: Ajust model on internal AP communication X-Git-Tag: v3.24~69^2~26^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/21417f429ffdeec7765662a1e108d3d9d934e381 Wifi: Ajust model on internal AP communication --- diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index 94409bb213..cf56363fe2 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -244,9 +244,9 @@ Action* NetworkCm02Model::communicate(s4u::Host* src, s4u::Host* dst, double siz double src_rate = wifi_link->get_host_rate(src); double dst_rate = wifi_link->get_host_rate(dst); - // TODO: What do to when src and dst are on the same AP ? (for the moment we use src rate) if (src_rate != -1 && dst_rate != -1) { get_maxmin_system()->expand(link->get_constraint(), action->get_variable(), 1.0 / src_rate); + get_maxmin_system()->expand(link->get_constraint(), action->get_variable(), 1.0 / dst_rate); } else { xbt_assert( !(src_rate == -1 && dst_rate == -1),