Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid overflow error when computing overall progress #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

black-puppydog
Copy link
Contributor

Hello. In good old ssb fashion I'm necro-PR'ing this. :)

This is a fix for a lock-up for the user if the offset log goes beyond 2^31 bytes in length. Since the ~~ uses a (signed) int32 representation, it produces a negative number in these cases. Result: the progress.indexes.current value is negative, thus smaller than the progress.indexes.target value, and Patchwork refuses to produce any further messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant