Skip to content

Commit

Permalink
Update pysys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel committed Dec 11, 2023
1 parent 0a1e915 commit a444a78
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pysys.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@ def totalRAM():
return np.round(psutil.virtual_memory().total/1000000000, 2)

def usedRAM():
return np.round(psutil.virtual_memory().used/1000000000, 1)
return np.round(psutil.virtual_memory().used/1000000000, 1)

class Memory:
def storageUsage(file = "/"):
storage = psutil.disk_usage(file)
return storage

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

0 comments on commit a444a78

Please sign in to comment.