bottleneck icon indicating copy to clipboard operation
bottleneck copied to clipboard

Improve priority sanitization for floats

Open aletorrado opened this issue 5 years ago • 0 comments

Hi, I've noticed that Bottleneck just uses the default priority any time a floating priority value, and it does not seem to be documented this behavior, or even that an integer is required.

Both the documentation should be improved about this matter, and Math.floor combined with Math.min and Math.max should be used to sanitize any number.

aletorrado avatar Feb 18 '20 21:02 aletorrado