Merge pull request #74 from curly60e/curly60e-patch-56

v0.5.0-stable
This commit is contained in:
curly60e 2020-06-25 18:02:09 -03:00 committed by GitHub
commit 9ece68da84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)))