Reverse pull 139

This commit is contained in:
Nicolas Hennion 2012-12-07 11:06:19 +01:00
parent 7579431ce9
commit dbd6f0afcc

View File

@ -728,12 +728,12 @@ class GlancesStats:
phymem = psutil.virtual_memory()
# buffers and cached (Linux, BSD)
buffers = getattr(phymem, 'buffers', lambda: 0)()
cached = getattr(phymem, 'cached', lambda: 0)()
buffers = getattr(phymem, 'buffers', lambda: 0)
cached = getattr(phymem, 'cached', lambda: 0)
# active and inactive not available on Windows
active = getattr(phymem, 'active', lambda: 0)()
inactive = getattr(phymem, 'inactive', lambda: 0)()
active = getattr(phymem, 'active', lambda: 0)
inactive = getattr(phymem, 'inactive', lambda: 0)
# phymem free and usage
total = phymem.total