Skip to content

Commit

Permalink
default value for total time
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoppe committed Jun 19, 2024
1 parent b13cf62 commit a8e36f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpx/src/gpx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export class TrackSegment extends GPXTreeLeaf {

// time
if (points[i].time === undefined) {
statistics.local.time.total.push(undefined);
statistics.local.time.total.push(0);
} else {
if (statistics.global.time.start === undefined) {
statistics.global.time.start = points[i].time;
Expand Down

0 comments on commit a8e36f3

Please sign in to comment.