This commit is contained in:
√(noham)²
2024-12-23 22:53:09 +01:00
parent 3621afa8bd
commit 1861b4599d
2 changed files with 24 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ class process_torrent():
peers.append((ip, port))
self.interval = response['interval']
def seedqueue(queue):
while True:
def seedqueue(queue, time):
while time > 0:
waitingqueue = ""
for torrent in queue:
if torrent.timer <= 0:
@@ -112,4 +112,5 @@ def seedqueue(queue):
waitingqueue += f"Waiting {torrent.timer} seconds for {torrent.configuration['torrent']}" + "\n"
os.system('cls' if os.name == 'nt' else 'clear')
print(waitingqueue)
sleep(1)
sleep(1)
time -= 1