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

Change FileCollectionStorage to not write 0 bytes to the next file at the end #73

Merged
merged 1 commit into from
Nov 26, 2013

Conversation

camerondavison
Copy link
Contributor

Currently at the end of writing to a file it is likely that the offset+length will be equal to the next file offset. Usually while selecting files once we get to a file that is greater than our current offset+length we break out of the loop. I would consider the next file that has offset+length equal to the offset to be outside of the range that we should be writing to, so we should also break out for equals to.

mpetazzoni added a commit that referenced this pull request Nov 26, 2013
Change FileCollectionStorage to not write 0 bytes to the next file at the end
@mpetazzoni mpetazzoni merged commit 186dbb3 into mpetazzoni:master Nov 26, 2013
@mpetazzoni
Copy link
Owner

It took me a while to correctly understand what you were talking about. Not an easy topic to explain. But it looks fine.

Thanks!

Dead-off added a commit to JetBrains/ttorrent-lib that referenced this pull request Jun 29, 2018
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.

2 participants