From 77fe8adbe9728c363e9b98aee343277fd01f7a0a Mon Sep 17 00:00:00 2001 From: Toby Date: Wed, 20 Sep 2023 00:21:28 +0200 Subject: [PATCH] clean up --- monitor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/monitor.py b/monitor.py index 9c21b4d..c7dda45 100755 --- a/monitor.py +++ b/monitor.py @@ -72,9 +72,8 @@ def main(): host_length = 0 for host in config['hosts']: - for user in host['users'].keys(): - if len(user) + len(host['host']) > host_length: - host_length = len(host['host']) + if len(host['host']) > host_length: + host_length = len(host['host']) print('Host'.center(host_length + 3) + ' ' + 'Load'.center(25) + ' ' + 'Ram Usage'.center(26))