Skip to content

Commit

Permalink
Fix broken timeperiods/scheduleddowntimes
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and Al2Klimov committed Aug 21, 2024
1 parent 37e4d7c commit d42066c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/legacytimeperiod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bool LegacyTimePeriod::IsInTimeRange(const tm *begin, const tm *end, int stride,
tsend = mktime_const(end);
tsref = mktime_const(reference);

if (tsref < tsbegin || tsref > tsend)
if (tsref < tsbegin || tsref >= tsend)
return false;

int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
Expand Down

0 comments on commit d42066c

Please sign in to comment.