helper: Fixed bug that ignored open intervals

This commit is contained in:
Paul Beckingham 2016-04-27 22:45:35 -04:00
parent 218780518c
commit 0fa7e32182

View file

@ -31,7 +31,6 @@
#include <Duration.h> #include <Duration.h>
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
#include <iostream> // TODO Remove.
#include <map> #include <map>
#include <vector> #include <vector>
@ -344,7 +343,8 @@ bool intervalMatchesFilterInterval (const Interval& interval, const Interval& fi
|| ||
(interval.range.end > filter.range.start && ((interval.range.end.toEpoch () == 0 ||
interval.range.end > filter.range.start) &&
interval.range.start < filter.range.end)) interval.range.start < filter.range.end))
{ {
for (auto& tag : filter.tags ()) for (auto& tag : filter.tags ())