Subtract pause duration from moving duration, change strings.

This commit is contained in:
voussoir 2023-04-01 13:11:53 -07:00
parent a89016383a
commit 59389accc5
2 changed files with 7 additions and 7 deletions

View file

@ -190,7 +190,7 @@ data class TrackStatistics(
}
if (first != null && last != null)
{
duration = last.time - first.time
duration = (last.time - first.time) - pause_duration
if (duration > 1000)
{
velocity = distance / (duration / 1000)

View file

@ -54,12 +54,12 @@
<string name="statistics_sheet_p_steps">Steps taken:</string>
<string name="statistics_sheet_p_steps_no_pedometer">pedometer not available</string>
<string name="statistics_sheet_p_waypoints">Recorded trackpoints:</string>
<string name="statistics_sheet_p_duration">Total duration:</string>
<string name="statistics_sheet_p_recording_paused">Recording paused:</string>
<string name="statistics_sheet_p_recording_start">Recording started:</string>
<string name="statistics_sheet_p_recording_stop">Recording stopped:</string>
<string name="statistics_sheet_p_max_altitude">Highest trackpoint:</string>
<string name="statistics_sheet_p_min_altitude">Lowest trackpoint:</string>
<string name="statistics_sheet_p_duration">Moving duration:</string>
<string name="statistics_sheet_p_recording_paused">Rest duration:</string>
<string name="statistics_sheet_p_recording_start">First point:</string>
<string name="statistics_sheet_p_recording_stop">Last point:</string>
<string name="statistics_sheet_p_max_altitude">Highest elevation:</string>
<string name="statistics_sheet_p_min_altitude">Lowest elevation:</string>
<string name="statistics_sheet_p_positive_elevation">Elevation (uphill):</string>
<string name="statistics_sheet_p_negative_elevation">Elevation (downhill):</string>
<string name="statistics_sheet_p_velocity">Average velocity:</string>