Check segemnt start date inclusively in TimePeriod::IsInside()

This commit is contained in:
Yonas Habteab 2024-08-01 16:13:10 +02:00
parent 4daa03dc02
commit 86347013a6

View File

@ -291,7 +291,7 @@ bool TimePeriod::IsInside(double ts) const
if (segments) {
ObjectLock dlock(segments);
for (const Dictionary::Ptr& segment : segments) {
if (ts > segment->Get("begin") && ts < segment->Get("end"))
if (ts >= segment->Get("begin") && ts < segment->Get("end"))
return true;
}
}