Skip to content

Commit

Permalink
Revert "Fix meanJourneySpeed (was using the number of points instead …
Browse files Browse the repository at this point in the history
…of the trip distance)"

This reverts commit 7dd9fdc.
  • Loading branch information
TomMD committed Sep 3, 2011
1 parent 7dd9fdc commit 6ea626a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/GPS/Gps2HtmlReport/JourneyStats.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ journeyDistance (point:points) = distance point (head points) + journeyDistance

-- | Calculates the average speed of the journey
meanJourneySpeed :: (Lat a, Lon a) => [a] -> Distance
meanJourneySpeed points = journeyDistance points / totalDistance points
meanJourneySpeed points = journeyDistance points / fromIntegral (length points)

-- | Calculates the maximum speed
maxSpeed :: [WptType] -> Speed
Expand Down

0 comments on commit 6ea626a

Please sign in to comment.