remove idx

This commit is contained in:
2023-09-20 02:39:13 +02:00
parent f8e83fc8cc
commit eb857c898b
2 changed files with 4 additions and 6 deletions

View File

@@ -33,12 +33,11 @@ def parse_top_string(data):
return load, cpu_percent, ram_total, ram_free
class Host(threading.Thread):
def __init__(self, host, port, host_length, idx):
def __init__(self, host, port, host_length):
threading.Thread.__init__(self)
self.host = host
self.port = port
self.host_length = host_length
self.idx = idx
self.status = 'none'
self.row = ''
@@ -105,7 +104,7 @@ def main():
continue
if not 'port' in host:
host['port'] = 22
hosts.append(Host(host['host'], host['port'] or 22, host_length, i))
hosts.append(Host(host['host'], host['port'] or 22, host_length))
for host in hosts:
host.start()