ratecontrol: replace an imprecise comparison with a more precise check to ensure
consistency.
ratecontrol: fix float absolute check