summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-09-11 22:27:39 +0200
committerChris Schlaeger <chris@linux.com>2014-09-11 22:27:39 +0200
commit5eb7bcc8381082f5bcd4b69de40c3b4595152be6 (patch)
treeb052c1c4869cc8d7f8ba8ed401eba11dc4305935
parent3add3cbc47b4664d0795d1587ec2e7459e349994 (diff)
downloadpostrunner-5eb7bcc8381082f5bcd4b69de40c3b4595152be6.zip
Fix: Avg. run candence was off by a factor of 2 in summary.
-rw-r--r--lib/postrunner/ActivitySummary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/postrunner/ActivitySummary.rb b/lib/postrunner/ActivitySummary.rb
index ed4cbf5..57935b2 100644
--- a/lib/postrunner/ActivitySummary.rb
+++ b/lib/postrunner/ActivitySummary.rb
@@ -76,7 +76,7 @@ module PostRunner
session.total_training_effect : '-' ])
t.row([ 'Avg. Run Cadence:',
session.avg_running_cadence ?
- "#{session.avg_running_cadence.round} spm" : '-' ])
+ "#{(2 * session.avg_running_cadence).round} spm" : '-' ])
t.row([ 'Avg. Vertical Oscillation:',
local_value(session, 'avg_vertical_oscillation', '%.1f %s',
{ :metric => 'cm', :statute => 'in' }) ])