From a672fd0647cc4244ff2133e264c1727cec486e2f Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Thu, 11 Apr 2019 10:42:08 +0200 Subject: [PATCH] Apply exclusions to open interval only within range within interval start and now Signed-off-by: Thomas Lauf --- src/data.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/data.cpp b/src/data.cpp index 09757af6..703e82aa 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -601,9 +601,12 @@ std::vector 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 ();