summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2018-01-17 08:05:29 +0100
committerChris Schlaeger <chris@linux.com>2018-01-17 08:05:29 +0100
commit6af51fc256360b67d72476556c6f414b555e4e81 (patch)
tree028dad9aedc043ade795cd993826a868d4965c52
parent059725b6c67272ecdbf5ad7dd0cd8d371b98e827 (diff)
downloadpostrunner-6af51fc256360b67d72476556c6f414b555e4e81.zip
Fix: Adapt to fit4ruby 2.0.0 API.
-rw-r--r--lib/postrunner/ActivitySummary.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/postrunner/ActivitySummary.rb b/lib/postrunner/ActivitySummary.rb
index b4b630b..dd6c40f 100644
--- a/lib/postrunner/ActivitySummary.rb
+++ b/lib/postrunner/ActivitySummary.rb
@@ -115,15 +115,15 @@ module PostRunner
local_value(session, 'avg_vertical_oscillation', '%.1f %s',
{ :metric => 'cm', :statute => 'in' }) ])
t.row([ 'Vertical Ratio:',
- session.vertical_ratio ?
- "#{session.vertical_ratio}%" : '-' ])
+ session.avg_vertical_ratio ?
+ "#{session.avg_vertical_ratio}%" : '-' ])
t.row([ 'Avg. Ground Contact Time:',
session.avg_stance_time ?
"#{session.avg_stance_time.round} ms" : '-' ])
- t.row([ 'Avg. Ground Contact Time Balance:',
- session.avg_gct_balance ?
- "#{session.avg_gct_balance}% L / " +
- "#{100.0 - session.avg_gct_balance}% R" : ';' ])
+ t.row([ 'Avg. Stance Time Balance:',
+ session.avg_stance_time_balance ?
+ "#{session.avg_stance_time_balance}% L / " +
+ "#{100.0 - session.avg_stance_time_balance}% R" : ';' ])
end
if @activity.sport == 'cycling'
t.row([ 'Avg. Cadence:',