Subtract pause duration from moving duration, change strings.
This commit is contained in:
parent
a89016383a
commit
59389accc5
2 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue