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

BXC-4621 - Divide by zero in source_file generate status #99

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

bbpennel
Copy link
Member

@bbpennel bbpennel commented Jul 17, 2024

The issue was that when the number of newly mapped files was less than the sample_size, we would end up with an interval of 0, which produced a divide by zero when selecting every Nth result to display.

For example, if there was one new file mapped, and the sample size was 20, then we would calculate the interval of results to display by doing 1/20, which comes out to 0 since the values are integers.

https://unclibrary.atlassian.net/browse/BXC-4621

  • Add test to replicate divide by zero during reporting error, and set minimum interval to 1

@krwong krwong merged commit 56bfedb into main Jul 17, 2024
2 checks passed
@bbpennel bbpennel deleted the bxc-4621-div-zero branch July 17, 2024 18:01
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