From ad10d7bc12eb171ebbb4b8acb8f06288df6bd877 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 26 Jan 2016 21:30:15 +0100 Subject: Showing METmax derived VO2max instead of the event log based VO2max value. --- lib/postrunner/ActivitySummary.rb | 3 --- lib/postrunner/UserProfileView.rb | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/postrunner/ActivitySummary.rb b/lib/postrunner/ActivitySummary.rb index 12802ed..89778ea 100644 --- a/lib/postrunner/ActivitySummary.rb +++ b/lib/postrunner/ActivitySummary.rb @@ -125,9 +125,6 @@ module PostRunner t.row([ 'Suggested Recovery Time:', rec_time ? secsToDHMS(rec_time * 60) : '-' ]) - vo2max = @fit_activity.vo2max - t.row([ 'VO2max:', vo2max ? vo2max : '-' ]) - hrv = HRV_Analyzer.new(@fit_activity) if hrv.has_hrv_data? t.row([ 'HRV Score:', "%.1f" % hrv.lnrmssdx20_1sigma ]) diff --git a/lib/postrunner/UserProfileView.rb b/lib/postrunner/UserProfileView.rb index c89216b..6f009d0 100644 --- a/lib/postrunner/UserProfileView.rb +++ b/lib/postrunner/UserProfileView.rb @@ -57,6 +57,10 @@ module PostRunner if profile.activity_class t.row([ 'Activity Class:', profile.activity_class ]) end + if profile.metmax + t.row([ 'METmax:', "#{profile.metmax} MET" ]) + t.row([ 'VO2max:', "#{'%.1f' % (profile.metmax * 3.5)} ml/kg/min" ]) + end t end -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0