mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +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) {
|
if (segments) {
|
||||||
ObjectLock dlock(segments);
|
ObjectLock dlock(segments);
|
||||||
for (const Dictionary::Ptr& segment : 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user