mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
* BugFix : Wrong operator on stride variable causing incorrect behaviour ( #6749 )
This commit is contained in:
parent
a47044fa08
commit
a02b7ac155
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue