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

Fixes #97: Correctly calculate download times #103

Merged
merged 4 commits into from
Feb 1, 2018
Merged

Fixes #97: Correctly calculate download times #103

merged 4 commits into from
Feb 1, 2018

Conversation

TimoStaudinger
Copy link
Contributor

@TimoStaudinger TimoStaudinger commented Jan 30, 2018

See #97 for an exact description of the problem. Changed the formula used to calculate download times to fix unit conversions.

Additionally moved the calculation results out of the state, instead calculating them while rendering. Results are memoized to avoid duplicate calculations.

@zouhir
Copy link
Owner

zouhir commented Jan 31, 2018

Fantastic!!!!!! 😻 I'll pull this tomorrow morning, try and then merge.. looks great tho! Thank you!

Copy link
Collaborator

@lukeed lukeed left a comment

Choose a reason for hiding this comment

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

Didn't test locally, but looks good to me too 👍

@zouhir
Copy link
Owner

zouhir commented Jan 31, 2018

hmmm I think we have a problem here, the calculations are bit more far off still on my end after pulling your branch :(

screen shot 2018-02-01 at 10 33 54

@TimoStaudinger
Copy link
Contributor Author

Yep, looks like we're getting the asset size in bytes, not kB. Thanks for testing that! 👍 Fixed:

image

Copy link
Owner

@zouhir zouhir left a comment

Choose a reason for hiding this comment

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

Love it

@zouhir zouhir merged commit 5924473 into zouhir:master Feb 1, 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.

3 participants