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
ed16377349
commit
574cbb4b4e
@ -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