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 the progressUpdateListener for Tile Pack Unpacking #1567

Merged
merged 2 commits into from
Nov 29, 2018

Conversation

kevinkreiser
Copy link
Contributor

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 to 0 from the full size of the file as its being truncated.

Copy link
Contributor

@devotaaabel devotaaabel left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

Copy link
Contributor Author

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-io
Copy link

Codecov Report

Merging #1567 into devota-route-tile-download will decrease coverage by <.01%.
The diff coverage is 0%.

@@                       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

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a 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 🙇

@Guardiola31337
Copy link
Contributor

Going ahead and merging here! Thanks again @kevinkreiser

@Guardiola31337 Guardiola31337 merged commit 21e491d into devota-route-tile-download Nov 29, 2018
@Guardiola31337 Guardiola31337 deleted the kk_unpack_progress branch November 29, 2018 21:53
@Guardiola31337 Guardiola31337 mentioned this pull request Nov 30, 2018
12 tasks
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.

4 participants