This commit is contained in:
2023-09-20 00:21:28 +02:00
parent 43b50a4efb
commit 77fe8adbe9

View File

@@ -72,8 +72,7 @@ def main():
host_length = 0 host_length = 0
for host in config['hosts']: for host in config['hosts']:
for user in host['users'].keys(): if len(host['host']) > host_length:
if len(user) + len(host['host']) > host_length:
host_length = len(host['host']) host_length = len(host['host'])
print('Host'.center(host_length + 3) + ' ' + 'Load'.center(25) + ' ' + 'Ram Usage'.center(26)) print('Host'.center(host_length + 3) + ' ' + 'Load'.center(25) + ' ' + 'Ram Usage'.center(26))