mirror of
https://github.com/NohamR/Ratio.py.git
synced 2026-01-15 18:38:20 +00:00
timer
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user