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 download percentage not always getting to 1 due to rounding errors #84

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

PiotrTHOC
Copy link
Contributor

@PiotrTHOC PiotrTHOC commented Feb 27, 2023

Sometimes download percentage does not go to '1' staying at 0.99999999999. The issue is due to rounding errors when creating: let slice = Double(1.0)/Double(expectedLength) in HTTPProgress constructor.

@malcommac
Copy link
Collaborator

Thank you for fix!

@malcommac malcommac added this to the 1.8.3 milestone Feb 28, 2023
@malcommac malcommac added the bug Something isn't working label Feb 28, 2023
@PiotrTHOC
Copy link
Contributor Author

Thank you for fix!

np. thx for the library :)

@malcommac malcommac changed the title fix download percentage not always getting to 1 due to rounding errors Fix download percentage not always getting to 1 due to rounding errors Feb 28, 2023
@malcommac malcommac merged commit bc92ce7 into immobiliare:main Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants