Fix min speed
This commit is contained in:
parent
d8d59938b3
commit
88b571efb6
1 changed files with 1 additions and 5 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue