mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 20:32:20 +03:00
disk info fixed
This commit is contained in:
parent
de88b17719
commit
69807d8f42
1 changed files with 3 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue