From a4fd78fffedc66dc0e6cf7b8978f1741c2e3d22e Mon Sep 17 00:00:00 2001 From: navarro Date: Thu, 29 Mar 2012 14:16:16 +0200 Subject: [PATCH] none_get_route_and_latency must set latency to 0. --- src/surf/surf_routing.c | 2 +- src/surf/surf_routing_none.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index d2de87b818..6ce1552706 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -95,7 +95,7 @@ struct s_model_type routing_models[] = { {"DijkstraCache", "Dijkstra routing data (fast initialization, fast lookup, small memory requirements, shortest path routing only)", model_dijkstracache_create, model_dijkstra_both_end}, - {"none", "No routing (usable with Constant network only)", + {"none", "No routing (Unless you know what you are doing, avoid using this mode in combination with a non Constant network model).", model_none_create, NULL}, {"RuleBased", "Rule-Based routing data (...)", model_rulebased_create, NULL}, diff --git a/src/surf/surf_routing_none.c b/src/surf/surf_routing_none.c index d4a598df46..cc1ef3cc06 100644 --- a/src/surf/surf_routing_none.c +++ b/src/surf/surf_routing_none.c @@ -15,6 +15,7 @@ static xbt_dynar_t none_get_onelink_routes(AS_t rc) { static void none_get_route_and_latency(AS_t rc, network_element_t src, network_element_t dst, route_t res,double *lat) { + *lat = 0.0; } static route_t none_get_bypass_route(AS_t rc, -- 2.20.1