disk info fixed

This commit is contained in:
Tuncay ÇOLAK 2021-01-05 12:41:53 +03:00
parent de88b17719
commit 69807d8f42

View file

@ -429,15 +429,15 @@ class System:
@staticmethod
def total():
return int(int(psutil.disk_usage('/')[0]) / (1024 * 1024))
return int(int(psutil.disk_usage('/')[0]) / (1000 * 1000))
@staticmethod
def used():
return int(int(psutil.disk_usage('/')[1]) / (1024 * 1024))
return int(int(psutil.disk_usage('/')[1]) / (1000 * 1000))
@staticmethod
def free():
return int(int(psutil.disk_usage('/')[2]) / (1024 * 1024))
return int(int(psutil.disk_usage('/')[2]) / (1000 * 1000))
@staticmethod
def percent():