mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Check segemnt start date inclusively in TimePeriod::IsInside()
This commit is contained in:
parent
3de7ec062b
commit
e611dc65ea
@ -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