Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix destination parameter when asking for a route in ws_get_route
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Thu, 22 Dec 2011 08:10:01 +0000 (09:10 +0100)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Thu, 22 Dec 2011 08:10:01 +0000 (09:10 +0100)
src/surf/workstation.c

index 4380cf1..3f0b344 100644 (file)
@@ -261,7 +261,7 @@ static surf_action_t ws_execute_parallel_task(int workstation_nb,
 static xbt_dynar_t ws_get_route(void *src, void *dst)
 {
   return surf_network_model->extension.
 static xbt_dynar_t ws_get_route(void *src, void *dst)
 {
   return surf_network_model->extension.
-      network.get_route(surf_resource_name(src), surf_resource_name(src));
+      network.get_route(surf_resource_name(src), surf_resource_name(dst));
 }
 
 static double ws_get_link_bandwidth(const void *link)
 }
 
 static double ws_get_link_bandwidth(const void *link)