Fix min speed

This commit is contained in:
PavelRatushny 2017-07-04 12:08:02 +03:00
parent d8d59938b3
commit 88b571efb6

View file

@ -521,11 +521,7 @@ public class GPXUtilities {
if (speed > 0) {
totalSpeedSum += speed;
if (minSpeed == 0) {
minSpeed = speed;
} else {
minSpeed = Math.min(speed, minSpeed);
}
minSpeed = Math.min(speed, minSpeed);
maxSpeed = Math.max(speed, maxSpeed);
speedCount++;
}