Closed TimoStaudinger closed 6 years ago
Fantastic!!!!!! 😻 I'll pull this tomorrow morning, try and then merge.. looks great tho! Thank you!
hmmm I think we have a problem here, the calculations are bit more far off still on my end after pulling your branch :(
Yep, looks like we're getting the asset size in bytes, not kB. Thanks for testing that! :+1: Fixed:
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.