diff --git a/lib/limits.py b/lib/limits.py index 46ee975..524430d 100644 --- a/lib/limits.py +++ b/lib/limits.py @@ -101,6 +101,6 @@ class Limits(object): def _clear_counters_if_needed(self): current_time = int(time.time()) for interval in self.intervals: - if current_time / self.divisor[interval] != self.last_update[interval]: + if current_time // self.divisor[interval] != self.last_update[interval]: self.counter[interval] = {} self.last_update[interval] = current_time / self.divisor[interval]