summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-06-04 21:28:57 +0200
committerChris Schlaeger <chris@linux.com>2015-06-04 21:28:57 +0200
commitded02799b9b0285962152fb48816c5ea56744830 (patch)
tree265b9f82b1874379a18f2f180ac4b7be156df73a
parent4e9a7e11c192f32bc55c9007ebda6d672bec6f7a (diff)
downloadpostrunner-ded02799b9b0285962152fb48816c5ea56744830.zip
New: Include recovery heart rate in activity summary.
-rw-r--r--lib/postrunner/ActivitySummary.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/postrunner/ActivitySummary.rb b/lib/postrunner/ActivitySummary.rb
index 159a642..c1c1464 100644
--- a/lib/postrunner/ActivitySummary.rb
+++ b/lib/postrunner/ActivitySummary.rb
@@ -88,6 +88,11 @@ module PostRunner
t.row([ 'Avg. Stride Length:',
local_value(session, 'avg_stride_length', '%.2f %s',
{ :metric => 'm', :statute => 'ft' }) ])
+ rec_hr = @fit_activity.recovery_hr
+ end_hr = @fit_activity.ending_hr
+ t.row([ 'Recovery HR:',
+ rec_hr && end_hr ?
+ "#{rec_hr} bpm [#{end_hr - rec_hr} bpm]" : '-' ])
rec_time = @fit_activity.recovery_time
t.row([ 'Recovery Time:', rec_time ? secsToHMS(rec_time * 60) : '-' ])
vo2max = @fit_activity.vo2max