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

ArgumentError on interval <1 or >1m #126

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

benbuckman
Copy link
Contributor

This addresses #125, a bug and/or undefined behavior when interval is > 1 million, the number of microseconds in a second.

  • raises ArgumentError with interval >= 1000000
  • raises same ArgumentError with interval < 1 because this is also invalid

An alternative would be to split interval into second and microsecond parts, but it's not clear that a sampling interval measured in seconds would ever be useful. (Also, if that was a common use case, I presume this would have been fixed in that direction a long time ago.)

@tmm1 tmm1 merged commit 4b60b76 into tmm1:master Jul 5, 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.

None yet

2 participants