Complete fix issue #136

This commit is contained in:
asergi 2012-12-13 16:52:50 +01:00
parent e83eeee67d
commit 0dfc4bd304

View File

@ -732,8 +732,8 @@ class GlancesStats:
phymem = psutil.phymem_usage()
# buffers and cached (Linux, BSD)
buffers = getattr(psutil, 'phymem_buffers', lambda: 0)()
cached = getattr(psutil, 'cached_phymem', lambda: 0)()
buffers = getattr(psutil, 'phymem_buffers', 0)()
cached = getattr(psutil, 'cached_phymem', 0)()
# phymem free and usage
total = phymem.total