Skip to content
Permalink
Browse files

Apply exclusions to open interval only within range within interval s…

…tart and now

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information...
lauft committed Apr 11, 2019
1 parent daec6b1 commit a672fd0647cc4244ff2133e264c1727cec486e2f
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/data.cpp
@@ -601,9 +601,12 @@ std::vector <Interval> getTracked (

if (latest.is_open ())
{
// Get the set of expanded exclusions that overlap the range defined by the
// timeline.
auto exclusions = getAllExclusions (rules, filter);
// Get the set of expanded exclusions that overlap the range defined by the open interval.
Interval exclusion_range {};
exclusion_range.start = latest.start;
exclusion_range.end = Datetime();

auto exclusions = getAllExclusions (rules, exclusion_range);
if (! exclusions.empty ())
{
intervals.pop_back ();

0 comments on commit a672fd0

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