From b7cfaed31f393194d707c9302821630407e7b791 Mon Sep 17 00:00:00 2001 From: Justin Ehrenhofer <12520755+SamsungGalaxyPlayer@users.noreply.github.com> Date: Mon, 24 Mar 2025 20:33:57 -0500 Subject: [PATCH] Add variability to autoforward timing Revert prior change to autoconvert, that was fine --- src/autoconvert.py | 4 ++-- src/autoforward.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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)