From b5902d065b8661ea0f3c85535e619e3a62094d4c Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Thu, 27 Jul 2017 21:42:06 +0200 Subject: Fix zone index off-by-one bug. --- lib/postrunner/ActivitySummary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3