summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-05-20 20:18:18 +0200
committerChris Schlaeger <chris@linux.com>2016-05-20 20:18:18 +0200
commit9d4a7ce30b3ea2d822aebc25f5abd1b3f6c966b7 (patch)
tree1322b23d049a907ab5d9c75da4de3db5c94e1cd9
parentac1136bff3968e417a15dd5a99b608ef20cd6f8e (diff)
downloadpostrunner-9d4a7ce30b3ea2d822aebc25f5abd1b3f6c966b7.zip
Yet another fix for intensity minute calculation.
-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 ab1761c..dae7658 100644
--- a/lib/postrunner/MonitoringStatistics.rb
+++ b/lib/postrunner/MonitoringStatistics.rb
@@ -354,7 +354,7 @@ module PostRunner
ma.intensity_minutes[:moderate_minutes] +
2 * ma.intensity_minutes[:vigorous_minutes]
- break if current_date.wday == @first_day_of_week
+ break if date.wday == @first_day_of_week
end
end