Fix broken timeperiods/scheduleddowntimes

This commit is contained in:
Yonas Habteab 2024-01-29 08:28:31 +01:00
parent 0463607050
commit 4daa03dc02
1 changed files with 1 additions and 1 deletions

View File

@ -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);