Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Wifi: Ajust model on internal AP communication
authorLoic Guegan <manzerbredes@mailbox.org>
Thu, 5 Sep 2019 09:09:42 +0000 (11:09 +0200)
committerLoic Guegan <manzerbredes@mailbox.org>
Thu, 5 Sep 2019 09:21:16 +0000 (11:21 +0200)
src/surf/network_cm02.cpp

index 94409bb..cf56363 100644 (file)
@@ -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),