mirror of
https://github.com/NaN-tic/trytond-monitoring_system.git
synced 2023-12-14 03:42:57 +01:00
Use psutil's virtual_memory() instead of deprecated phymem_usage().
This commit is contained in:
parent
247afeb7a4
commit
5949fa2765
|
@ -61,7 +61,7 @@ class CheckPlan:
|
|||
return res
|
||||
|
||||
def check_physical_memory(self):
|
||||
usage = psutil.phymem_usage()
|
||||
usage = psutil.virtual_memory()
|
||||
res = []
|
||||
for name in ('active', 'available', 'buffers', 'cached', 'free',
|
||||
'inactive', 'percent', 'total', 'used'):
|
||||
|
|
Loading…
Reference in a new issue