diff options
Diffstat (limited to 'modules/anticaps.cpp')
| -rw-r--r-- | modules/anticaps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/anticaps.cpp b/modules/anticaps.cpp index 68f7cd1e4..8500d1145 100644 --- a/modules/anticaps.cpp +++ b/modules/anticaps.cpp @@ -23,6 +23,7 @@ #include "extension.h" #include "modules/exemption.h" #include "numerichelper.h" +#include "utility/numeric.h" enum class AntiCapsMethod : uint8_t @@ -275,7 +276,7 @@ public: return MOD_RES_PASSTHRU; // Calculate the percentage. - double percent = round((upper * 100) / length); + const auto percent = insp::percentage(upper, length); if (percent < config->percent) return MOD_RES_PASSTHRU; |
