From 95f124eceb2a8b49553b6ff513a0cdf211782a0c Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sun, 14 Aug 2016 13:30:29 +0200 Subject: Fix: Percentage floors climbed in monthly report is now correct. --- lib/postrunner/MonitoringStatistics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/postrunner/MonitoringStatistics.rb b/lib/postrunner/MonitoringStatistics.rb index ed2091f..507fcdc 100644 --- a/lib/postrunner/MonitoringStatistics.rb +++ b/lib/postrunner/MonitoringStatistics.rb @@ -282,7 +282,7 @@ module PostRunner t.cell((totals[:intensity_minutes] / counted_days).to_i) t.cell(percent(totals[:intensity_minutes], (counted_days / 7.0) * 150)) t.cell((totals[:floors_climbed] / counted_days).to_i) - t.cell(percent(totals[:floors] / counted_days, 10)) + t.cell(percent(totals[:floors_climbed] / counted_days, 10)) t.cell((totals[:floors_descended] / counted_days).to_i) t.cell('%.0f' % (totals[:distance] / counted_days)) t.cell((totals[:calories] / counted_days).to_i) -- cgit v1.2.3