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) { if (speed > 0) {
totalSpeedSum += speed; totalSpeedSum += speed;
if (minSpeed == 0) { minSpeed = Math.min(speed, minSpeed);
minSpeed = speed;
} else {
minSpeed = Math.min(speed, minSpeed);
}
maxSpeed = Math.max(speed, maxSpeed); maxSpeed = Math.max(speed, maxSpeed);
speedCount++; speedCount++;
} }