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

Calculate correct average size #286

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Conversation

punkt2
Copy link
Contributor

@punkt2 punkt2 commented Nov 18, 2020

What kind of this PR?

  • Bugfix

Other information:

firstRangeAverageSize is calculated wrong when the first items of the first range have the same size and the following item has a different size. firstRangeTotalSize is then not the sum of all sizes in the first range but is calculated starting from the item with the different size on.

By dividing then firstRangeTotalSize with the total number of sizes gives a wrong estimated size.

firstRangeAverageSize is calculated wrong when the first items of the first range have the same size and the following a different size.
@tangbc tangbc merged commit dbd4bf7 into tangbc:master Nov 25, 2020
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