Skip to content

Commit

Permalink
Disable exponential counter reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed Jul 9, 2020
1 parent d6baab9 commit 55f8046
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apraw/utils/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def count(self) -> int:
max_jitter = self._value / 16.0
self._value = min(self._value * 2, self._max)
value = self._value + random.random() * max_jitter - max_jitter / 2
if self._value >= self._max:
self._value = 1
return value

def reset(self):
Expand Down

0 comments on commit 55f8046

Please sign in to comment.