diff --git a/js/src/trackviewmodel.js b/js/src/trackviewmodel.js index 57fa35d..7a07333 100644 --- a/js/src/trackviewmodel.js +++ b/js/src/trackviewmodel.js @@ -367,6 +367,10 @@ export default class TrackViewModel extends ViewModel {
${$._('tdistance')} ${$.getLocaleDistanceMajor(last.totalMeters, true)}
${$._('ttime')} ${$.getLocaleDuration(last.totalSeconds)}
`; + if (last.totalSeconds > 0) { + summary += ` +
${$._('aspeed')} ${$.getLocaleSpeed(last.totalMeters / last.totalSeconds, true)}
`; + } if (track.hasSpeeds) { summary += `
${$._('speed')} ${$.getLocaleSpeed(track.maxSpeed, true)}
`; }