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 Issue696 -- Divide by 0 Error when setting rate to 0 manually #700

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

Ephex2
Copy link
Contributor

@Ephex2 Ephex2 commented Jul 8, 2023

Description

Added check to RateThrottle.ChangeRate() in rate.go to prevent a divide by 0 error when the rate is set to 0. Ref: issue 696: #696

Fixes: #696

Additionally

Name added to contributors.md as requested.
Change made to CHANGELOG.md may not be in the right place, please verify, I'm new here :)

CONTRIBUTORS.md Outdated
@@ -46,4 +46,4 @@
* [SolomonSklash](https://github.com/SolomonSklash)
* [TomNomNom](https://github.com/tomnomnom)
* [xfgusta](https://github.com/xfgusta)

* [Ephex2](https://github.com/Ephex2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this alphabetically sorted?)

Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change, otherwise LGTM!

@joohoi
Copy link
Member

joohoi commented Sep 13, 2023

Ok, fixed the only small issue there was, thanks again for the PR, merging!

@joohoi joohoi merged commit 96fef62 into ffuf:master Sep 13, 2023
3 checks passed
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.

panic: runtime error: integer divide by zero
2 participants