summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-08-14 13:30:29 +0200
committerChris Schlaeger <chris@linux.com>2016-08-14 13:30:29 +0200
commit95f124eceb2a8b49553b6ff513a0cdf211782a0c (patch)
treed93eab57e11f77eadfc4bca65061be11c95be2c7 /lib
parent93b5fc82a4d8ef9c6587abdd43b2e91ea829cfda (diff)
downloadpostrunner-95f124eceb2a8b49553b6ff513a0cdf211782a0c.zip
Fix: Percentage floors climbed in monthly report is now correct.
Diffstat (limited to 'lib')
-rw-r--r--lib/postrunner/MonitoringStatistics.rb2
1 files changed, 1 insertions, 1 deletions
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)