From 21417f429ffdeec7765662a1e108d3d9d934e381 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 5 Sep 2019 11:09:42 +0200 Subject: [PATCH] Wifi: Ajust model on internal AP communication --- src/surf/network_cm02.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.20.1