From 5949fa27654d11f48539d03b24e97d19bda6782c Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Sun, 12 Oct 2014 00:06:32 +0200 Subject: [PATCH] Use psutil's virtual_memory() instead of deprecated phymem_usage(). --- monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring.py b/monitoring.py index 1207aef..648090c 100644 --- a/monitoring.py +++ b/monitoring.py @@ -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'):