From 823b64b8bad5b3c23634a68ecc9cd601d3f58bd8 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 13 Jul 2015 17:43:28 +0200 Subject: [PATCH] memory_usage: assume buffers and cached to be free --- lib/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes.py b/lib/nodes.py index 3c0fa2f..11a1ea5 100644 --- a/lib/nodes.py +++ b/lib/nodes.py @@ -90,7 +90,7 @@ def import_statistics(nodes, stats): add(node, stats, 'uptime', ['uptime']) add(node, stats, 'loadavg', ['loadavg']) add(node, stats, 'memory_usage', ['memory'], - lambda d: 1 - d['free'] / d['total']) + lambda d: 1 - (d['free'] + d['buffers'] + d['cached']) / d['total']) add(node, stats, 'rootfs_usage', ['rootfs_usage']) add(node, stats, 'traffic', ['traffic'])