mirror of https://github.com/Icinga/icinga2.git
* BugFix : Wrong operator on stride variable causing incorrect behaviour ( #6749 )
This commit is contained in:
parent
a47044fa08
commit
a02b7ac155
|
@ -42,7 +42,7 @@ bool LegacyTimePeriod::IsInTimeRange(tm *begin, tm *end, int stride, tm *referen
|
|||
|
||||
int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
|
||||
|
||||
if (stride > 1 && daynumber % stride == 0)
|
||||
if (stride > 1 && daynumber % stride > 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue