Skip to content

Commit

Permalink
Merge pull request #1 from jonaswitt/master
Browse files Browse the repository at this point in the history
Remove erroneous unit conversion in TTG calculation.
  • Loading branch information
panaaj authored May 23, 2024
2 parents cb4e12a + 5286830 commit 802c5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function timeCalcs(
: new Date()

const dateMsec = date.getTime()
const ttgMsec = Math.floor((distance / (vmg * 0.514444)) * 1000)
const ttgMsec = Math.floor((distance / vmg) * 1000)
const etaMsec = dateMsec + ttgMsec

return {
Expand Down

0 comments on commit 802c5c0

Please sign in to comment.