diff options
-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 |