Skip to content

Commit

Permalink
Remove upper bound of 1 for quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
catlee committed Dec 11, 2023
1 parent 7340489 commit 5aa0f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/semian/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ check_quota_arg(VALUE quota)
if (TYPE(quota) != T_FIXNUM && TYPE(quota) != T_FLOAT) {
rb_raise(rb_eTypeError, "expected decimal type for quota");
}
if (NUM2DBL(quota) <= 0 || NUM2DBL(quota) > 1) {
if (NUM2DBL(quota) <= 0) {
rb_raise(rb_eArgError, "quota must be a decimal between 0 and 1");
}
c_quota = NUM2DBL(quota);
Expand Down

0 comments on commit 5aa0f05

Please sign in to comment.