Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

ch.qos.logback.core.rolling.helper.RollingCalendar#periodBarriersCrossed return negtive result when first run #34

Open
jr981008 opened this issue Dec 7, 2021 · 0 comments

Comments

@jr981008
Copy link

jr981008 commented Dec 7, 2021

 ch.qos.logback.core.rolling.helper.RollingCalendar#periodBarriersCrossed

case TOP_OF_HOUR:
return (int) diff / MILLIS_IN_ONE_HOUR; return negative result because of overflow

these make archiveRemover.cleanAsynchronously(now) first time run alway skip clean task and file never clean

Is this a problem or a special design? thanks for your answer.

@jr981008 jr981008 changed the title ch.qos.logback.core.rolling.helper.RollingCalendar#periodBarriersCrossed alway ch.qos.logback.core.rolling.helper.RollingCalendar#periodBarriersCrossed return negtive result when first run Dec 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant