summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2017-07-27 21:42:06 +0200
committerChris Schlaeger <chris@linux.com>2017-07-27 21:42:06 +0200
commitb5902d065b8661ea0f3c85535e619e3a62094d4c (patch)
treed2a730361501b4318fae0600613c591464689fab /lib
parente9d4fb221e4b8cccafc4022ed2cbc975a3bf04e6 (diff)
downloadpostrunner-b5902d065b8661ea0f3c85535e619e3a62094d4c.zip
Fix zone index off-by-one bug.
Diffstat (limited to 'lib')
-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 4ed1bdc..8e698c7 100644
--- a/lib/postrunner/ActivitySummary.rb
+++ b/lib/postrunner/ActivitySummary.rb
@@ -213,7 +213,7 @@ module PostRunner
zones = gather_hr_zones
zones.each do |zone|
- t.cell(zone.index)
+ t.cell(zone.index + 1)
t.cell([ 'Warm Up', 'Easy', 'Aerobic', 'Threshold', 'Maximum' ][zone.index])
t.cell(zone.low)
t.cell(zone.high)