Skip to content

Commit

Permalink
Check segemnt start date inclusively in TimePeriod::IsInside()
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and Al2Klimov committed Aug 21, 2024
1 parent d42066c commit 0de7337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/timeperiod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0de7337

Please sign in to comment.