mirror of https://github.com/Icinga/icinga2.git
Fix broken timeperiods/scheduleddowntimes
This commit is contained in:
parent
0463607050
commit
4daa03dc02
|
@ -31,7 +31,7 @@ bool LegacyTimePeriod::IsInTimeRange(const tm *begin, const tm *end, int stride,
|
||||||
tsend = mktime_const(end);
|
tsend = mktime_const(end);
|
||||||
tsref = mktime_const(reference);
|
tsref = mktime_const(reference);
|
||||||
|
|
||||||
if (tsref < tsbegin || tsref > tsend)
|
if (tsref < tsbegin || tsref >= tsend)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
|
int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
|
||||||
|
|
Loading…
Reference in New Issue