Skip to content

Commit

Permalink
increase sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroquinc committed Sep 29, 2024
1 parent 697280e commit 94da3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def update_and_sleep(info, length, last_info, last_length, last_time):
if should_update_rp(info, length, last_info, last_length, last_time):
update_rp(info, length)
last_info, last_length, last_time = info, length, length['result']['time']
time.sleep(3)
time.sleep(10)
return last_info, last_length, last_time

def main():
Expand All @@ -24,7 +24,7 @@ def main():
while True:
info, length = get_session_info(session)
if None in (info, length):
time.sleep(3)
time.sleep(10)
continue
last_info, last_length, last_time = update_and_sleep(info, length, last_info, last_length, last_time)
except KeyboardInterrupt:
Expand Down

0 comments on commit 94da3d7

Please sign in to comment.