-
Notifications
You must be signed in to change notification settings - Fork 319
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 the progressUpdateListener for Tile Pack Unpacking #1567
Fix the progressUpdateListener for Tile Pack Unpacking #1567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool thanks for fixing this!
} | ||
while (progress < 100L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its to make sure it gets to 100% before ending the progress update task
Codecov Report
@@ Coverage Diff @@
## devota-route-tile-download #1567 +/- ##
================================================================
- Coverage 22.39% 22.39% -0.01%
Complexity 689 689
================================================================
Files 189 189
Lines 8233 8235 +2
Branches 606 606
================================================================
Hits 1844 1844
- Misses 6206 6208 +2
Partials 183 183 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Thanks for squashing this one @kevinkreiser 🙇
Going ahead and merging here! Thanks again @kevinkreiser |
Not much to describe here, just that we had two small issues. We needed to use floating point division so that when we cast back to long it doesn't truncate to
0
and we also needed to invert the percentage since we are counting down to0
from the full size of the file as its being truncated.