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

don't truncate returned samples in Simple #1

Merged
merged 1 commit into from Jun 3, 2018
Merged

don't truncate returned samples in Simple #1

merged 1 commit into from Jun 3, 2018

Conversation

dominikh
Copy link
Contributor

@dominikh dominikh commented Jun 1, 2018

Instead of truncating the ratio, round it upwards to make sure we always
allocate enough samples. This gets rid of the "margin" (which wasn't
large enough for all cases, anyway), and supports ratios less than 1,
which previously only returned up to 20 samples.

Instead of truncating the ratio, round it upwards to make sure we always
allocate enough samples. This gets rid of the "margin" (which wasn't
large enough for all cases, anyway), and supports ratios less than 1,
which previously only returned up to 20 samples.
@coveralls
Copy link

coveralls commented Jun 1, 2018

Coverage Status

Coverage increased (+0.1%) to 97.143% when pulling f964180 on dominikh:master into d31a1ff on dh1tw:master.

@dh1tw
Copy link
Owner

dh1tw commented Jun 3, 2018

Hi @dominikh,
thanks for your PR! Math.Ceil looks indeed as a better option. I will merge it now.

Best regards from Reykjavik (Gophercon EU) :-)
Tobias

@dh1tw dh1tw merged commit b4c0190 into dh1tw:master Jun 3, 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.

None yet

3 participants