Fix:Core:Improved comment
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Jan 2009 15:49:23 +0000 (15:49 +0000)
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 5 Jan 2009 15:49:23 +0000 (15:49 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1892 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/route.c

index 96e8ad4..870d21c 100644 (file)
@@ -1204,10 +1204,13 @@ route_graph_destroy(struct route_graph *this)
 /**
  * @brief Returns the time needed to drive len on item
  *
+ * This function returns the time needed to drive len meters on 
+ * the item passed in item in tenth of seconds.
+ *
  * @param speedlist The speedlist that should be used
  * @param item The item to be driven on
  * @param len The length to drive
- * @return The time needed to drive len on item
+ * @return The time needed to drive len on item in thenth of senconds
  */
 int
 route_time(int *speedlist, struct item *item, int len)
@@ -1220,6 +1223,7 @@ route_time(int *speedlist, struct item *item, int len)
                dbg(0,"street type %d speed is zero\n", item->type);
                return len*36;
        }
+
        return len*36/speedlist[item->type-route_item_first];
 }