Skip to content
Permalink
Browse files

Fix padding for determined hour range (+1h before and after)

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information...
lauft committed Apr 11, 2019
1 parent 36d7b6f commit 186dd8e3de923c425b6e7a224b441fc4deab7760
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Chart.cpp
@@ -232,7 +232,7 @@ std::pair<int, int> Chart::determineHourRange (
else
{
first_hour = std::max (first_hour - 1, 0);
last_hour = std::min (last_hour + 1, 23);
last_hour = std::min (last_hour, 23);
}

return std::make_pair (first_hour, last_hour);

0 comments on commit 186dd8e

Please sign in to comment.
You can’t perform that action at this time.