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