3 @@ -567,9 +567,14 @@ int findNeedRotating(struct logInfo *log
5 1) the current weekday is before the weekday of the
7 + 1) the day of the week is the same as the day of the week of
8 + the previous rotation but not the same day of the year
9 + this will rotate it on the same day every week, but not
11 2) more then a week has passed since the last
13 - state->doRotate = ((now.tm_wday < state->lastRotated.tm_wday)
14 + state->doRotate = ((now.tm_wday == state->lastRotated.tm_wday
15 + && now.tm_yday != state->lastRotated.tm_yday)
18 mktime(&state->lastRotated)) >