From 66a6b6eefde8b9d5aac551b3e0008d3df3ddeba7 Mon Sep 17 00:00:00 2001 From: Navarrop Date: Mon, 11 Jul 2011 16:07:35 +0200 Subject: [PATCH] We need to divide to pass from ms to s. --- src/surf/surf_routing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 9adc4541ab..65abb38f6f 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -127,7 +127,8 @@ static double base_vivaldi_get_latency (const char *src, const char *dst) xbt_assert(euclidean_dist>=0, "Euclidean Dist is less than 0\"%s\" and \"%.2f\"", src, euclidean_dist); - return euclidean_dist; + //From .ms to .s + return euclidean_dist / 1000; } static double vivaldi_get_link_latency (routing_component_t rc,const char *src, const char *dst, route_extended_t e_route) -- 2.20.1