From 6af51fc256360b67d72476556c6f414b555e4e81 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Wed, 17 Jan 2018 08:05:29 +0100 Subject: Fix: Adapt to fit4ruby 2.0.0 API. --- lib/postrunner/ActivitySummary.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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:', -- cgit v1.2.3