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 off-by-one error causing Infinity in 100% EIL #553

Merged
merged 1 commit into from
Aug 2, 2016
Merged

Conversation

brendankenny
Copy link
Member

Fixes one of the remaining extension issues—occasional infinite loading spinner on the report page.

The conditional for the EIL calc loop was sometimes going one higher than it should due to floating point issues. This would only affect the 100th percentile result (so wasn't used in any calculations (yet)), but would end up putting an Infinity in the extendedInfo due to a divide by 0. It then was JSON.stringifyed and JSON.parsed, which roundtrips Infinity to null, thus giving the TypeError: Cannot read property 'toFixed' of null exception causing the infinite spinner.

@brendankenny
Copy link
Member Author

we may be good after this and #546 to do a new extension release. I'm not seeing any other issues right now.

@paulirish
Copy link
Member

Nice work debugging this guy.

@paulirish paulirish merged commit 2019595 into master Aug 2, 2016
@paulirish paulirish added the +1 label Aug 2, 2016
@paulirish paulirish deleted the tofixed branch August 2, 2016 02:50
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.

2 participants