Skip to content

Commit

Permalink
Rate-limit further
Browse files Browse the repository at this point in the history
Twice a second killed the site.
  • Loading branch information
waldoj committed Mar 11, 2017
1 parent 91ebcdd commit 395426a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tavenner.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def main():
break

# Don't query more than once every half-second.
if time.time() - start_time < 0.5:
time.sleep(0.5 - (time.time() - start_time))
if time.time() - start_time < 1:
time.sleep(1 - (time.time() - start_time))

if __name__ == "__main__":
main()

0 comments on commit 395426a

Please sign in to comment.