Don't calculate velocity for tracks <= 1 second.

This commit is contained in:
voussoir 2023-03-26 19:30:18 -07:00
parent 3b36cc6c85
commit d555590d1f

View file

@ -182,7 +182,10 @@ data class TrackStatistics(
if (first != null && last != null)
{
duration = last.time - first.time
velocity = distance / (duration / 1000)
if (duration > 1000)
{
velocity = distance / (duration / 1000)
}
}
}
}