mirror of https://github.com/aristocratos/bpytop
Added stripping of .local from /host clock format
parent
3e65c68e78
commit
be75d1751c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue