diff --git a/src/autoconvert.py b/src/autoconvert.py index 93c36fc..0f2af27 100644 --- a/src/autoconvert.py +++ b/src/autoconvert.py @@ -84,5 +84,5 @@ while 1: print(util.get_time(), f'Error attempting to sell {asset}:') print(traceback.format_exc()) - delay = random.uniform(30, 90) - time.sleep(round(delay, 2)) + delay = random.randint(30, 90) + time.sleep(delay) diff --git a/src/autoforward.py b/src/autoforward.py index 4cad0a2..0356d9a 100644 --- a/src/autoforward.py +++ b/src/autoforward.py @@ -1,5 +1,6 @@ from typing import Literal, cast from time import sleep +import random import traceback import requests import json @@ -198,5 +199,6 @@ while 1: print(util.get_time(), 'Error autoforwarding Monero:') print(traceback.format_exc()) - sleep(60 * 5) + delay = random.randint(270, 330) + sleep(delay)