mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6750 from davidtek/master
#6749 Wrong operator on stride variable causing incorrect behaviour
This commit is contained in:
commit
b6212e92fb
|
@ -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