fix float discriminant of check-swap-percentage
Merge pull request #691 from sakajunquality/fix_swap_percent_discriminant

fix if confition of check-swap-percentage