Skip to content

Commit

Permalink
Update pysys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel authored Mar 20, 2024
1 parent f816db4 commit 3c72046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pysys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import platform
import psutil
import numpy as np
import cpuinfo


class CPU:
Expand All @@ -28,6 +29,10 @@ def logicalCoresCPU():
# Overall CPU Usage
def CPUsage():
return psutil.cpu_percent()

# CPU Info
def CPU():
return cpuinfo.get_cpu_info()["brand_raw"]

class OSType:
def OS():
Expand Down Expand Up @@ -56,4 +61,4 @@ def storageUsage(file = "/"):
return storage

def partitions():
return psutil.disk_partitions(True)
return psutil.disk_partitions(True)

0 comments on commit 3c72046

Please sign in to comment.