diff options
Diffstat (limited to '')
-rw-r--r-- | server/src/serverLib/RateLimiter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/serverLib/RateLimiter.js b/server/src/serverLib/RateLimiter.js index 3f9bc27..a4a0cd8 100644 --- a/server/src/serverLib/RateLimiter.js +++ b/server/src/serverLib/RateLimiter.js @@ -77,7 +77,7 @@ class RateLimiter { return true; } - record.score *= 2 ** -(Date.now() - record.time) / this.halflife; + record.score *= Math.pow(2, -(Date.now() - record.time ) / this.halflife); record.score += deltaScore; record.time = Date.now(); |