Update colors.py

This commit is contained in:
Richard Mwewa
2022-11-24 23:29:51 +02:00
committed by GitHub
parent 87f287bfb9
commit cfa032f7cb

View File

@@ -9,11 +9,11 @@ from datetime import datetime
# colors.py is the reason why users get to choose whether to enable/disable colors
# delete this file, the entire program breaks
system_info = [("RAM", f"{str(round(psutil.virtual_memory().total / (1024.0 **3)))}GB"),
("Processor",platform.processor),
("Node", platform.node),
("Release", platform.release),
("Architecture", platform.architecture),
("Version", platform.version)]
("Processor",platform.processor()),
("Node", platform.node()),
("Release", platform.release()),
("Architecture", platform.architecture()),
("Version", platform.version())]
first_banner = f"""
OCTOSUITE © 2022 Richard Mwewa
{datetime.now().strftime('%A %d %B %Y, %H:%M:%S%p')}
@@ -23,7 +23,7 @@ first_banner = f"""
print(first_banner)
system_tree = Tree(f"{platform.system()}")
for system_key, system_value in system_info:
system_tree.add(f"{system_key}: {system_value()}")
system_tree.add(f"{system_key}: {system_value}")
xprint(system_tree)
print("\n")
while True: