From f4fd9dbd387de8ccacf1f693fa5695236a475034 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 29 Oct 2012 13:32:34 +0100 Subject: [PATCH] Fixes issue #489 --- profiles/foot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/foot.lua b/profiles/foot.lua index efa4ed6a7..5cac51111 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -128,7 +128,7 @@ function way_function (way, numberOfNodesInWay) (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0) then if durationIsValid(duration) then - way.speed = parseDuration / math.max(1, numberOfNodesInWay-1); + way.speed = parseDuration(duration) / math.max(1, numberOfNodesInWay-1); way.is_duration_set = true; end way.direction = Way.bidirectional;