clean up
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user