From be75d1751c5e33ccdab6ecf3d18d8df3fec680e7 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Thu, 8 Oct 2020 17:25:46 +0200 Subject: [PATCH] Added stripping of .local from /host clock format --- bpytop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bpytop.py b/bpytop.py index 8b88d84..3e49058 100755 --- a/bpytop.py +++ b/bpytop.py @@ -1517,6 +1517,8 @@ class Box: "/host" : os.uname()[1], "/user" : os.environ.get("USER") or pwd.getpwuid(os.getuid())[0], } + if clock_custom_format["/host"].endswith(".local"): + clock_custom_format["/host"] = clock_custom_format["/host"].replace(".local", "") @classmethod def calc_sizes(cls):