1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 02:25:53 +03:00

replace / with //

This commit is contained in:
Luciano Strika 2018-08-06 18:26:18 -03:00
parent cdb253b2a0
commit 058cf454b5

View File

@ -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]