diff options
author | Chris Schlaeger <chris@linux.com> | 2018-05-27 13:56:32 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2018-05-27 13:56:32 +0200 |
commit | b2d2e9fc892984330a1bcd2574f755e3ba1f2265 (patch) | |
tree | 2c78ef1b69d2135459c5fc8ca6e6aea38943378f /lib | |
parent | 7a33eeb842e0686d423e8812b78e271232c86a75 (diff) | |
download | postrunner-b2d2e9fc892984330a1bcd2574f755e3ba1f2265.zip |
Fix: Leave VO2max computation to fit4ruby library.
This will result in slightly lower but probably more accurate VO2max
values (accurate as reported by the device).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/postrunner/UserProfileView.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/postrunner/UserProfileView.rb b/lib/postrunner/UserProfileView.rb index e75ce18..a224277 100644 --- a/lib/postrunner/UserProfileView.rb +++ b/lib/postrunner/UserProfileView.rb @@ -74,7 +74,9 @@ module PostRunner end if (metmax = user_data.metmax) t.row([ 'METmax:', "#{metmax} MET" ]) - t.row([ 'VO2max:', "#{'%.1f' % (metmax * 3.5)} ml/kg/min" ]) + end + if (vo2max = @fit_activity.vo2max) + t.row([ 'VO2max:', "#{'%.1f' % vo2max} ml/kg/min" ]) end t end |