Bugfix: ChartFragment needs to show elevation in M/FT.

This commit is contained in:
Dennis Guse
2021-04-30 22:17:04 +02:00
parent 6723bfb979
commit 1baf652b81
6 changed files with 10 additions and 22 deletions
@@ -175,7 +175,7 @@ public class PeriodicTaskExecutor {
return;
}
double distance = trackStatistics.getTotalDistance().to(metricUnits);
double distance = trackStatistics.getTotalDistance().toKM_Miles(metricUnits);
// The index will be negative since the frequency is negative.
int index = (int) (distance / taskFrequency);