mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Check segemnt start date inclusively in TimePeriod::IsInside()
This commit is contained in:
parent
4daa03dc02
commit
86347013a6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user