Intervals are computated through TrackStatisticsUpdater. Fixes #703.

This commit is contained in:
Román Martínez
2021-04-08 22:32:21 +02:00
parent 47a340578f
commit 4c68592a0c
6 changed files with 66 additions and 28 deletions
@@ -52,7 +52,7 @@ public class AnnouncementUtilsTest {
stats.setTotalAltitudeGain(6000f);
List<TrackPoint> trackPoints = TestDataUtil.createTrack(new Track.Id(System.currentTimeMillis()), 10).second;
IntervalStatistics intervalStatistics = new IntervalStatistics(trackPoints, Distance.of(1000));
IntervalStatistics intervalStatistics = new IntervalStatistics(trackPoints, Distance.of(1000), Distance.of(0));
IntervalStatistics.Interval lastInterval = intervalStatistics.getIntervalList().get(intervalStatistics.getIntervalList().size() - 1);
// when