From 639267c987003fdcb877550312db9d64f4df4d55 Mon Sep 17 00:00:00 2001 From: curly60e <55191248+curly60e@users.noreply.github.com> Date: Thu, 25 Jun 2020 18:01:50 -0300 Subject: [PATCH] v0.5.0-stable --- sysinf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysinf.py b/sysinf.py index ac2ba3f..94b7dc8 100644 --- a/sysinf.py +++ b/sysinf.py @@ -5,9 +5,9 @@ import psutil -def sysinfoDetail(): #Cpu and memory usage +def sysinfoDetail(): #Cpu and memory usage try: - # gives a single float value + # gives a single float value print(" \033[0;37;40m----------------------------") print(" \033[3;33;40mCPU Usage: \033[1;32;40m" + str(psutil.cpu_percent()) + "\033[0;37;40m%") print(" \033[3;33;40mMemory Usage: \033[1;32;40m" "{}\033[0;37;40m%".format(int(psutil.virtual_memory().percent)))