mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 14:22:17 +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
|
@staticmethod
|
||||||
def total():
|
def total():
|
||||||
return int(int(psutil.disk_usage('/')[0]) / (1024 * 1024))
|
return int(int(psutil.disk_usage('/')[0]) / (1000 * 1000))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def used():
|
def used():
|
||||||
return int(int(psutil.disk_usage('/')[1]) / (1024 * 1024))
|
return int(int(psutil.disk_usage('/')[1]) / (1000 * 1000))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def free():
|
def free():
|
||||||
return int(int(psutil.disk_usage('/')[2]) / (1024 * 1024))
|
return int(int(psutil.disk_usage('/')[2]) / (1000 * 1000))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def percent():
|
def percent():
|
||||||
|
|
Loading…
Reference in a new issue