From 64dee31ebb030583b4dd374d39d62e2a53937458 Mon Sep 17 00:00:00 2001 From: stebifan Date: Sun, 7 Jun 2015 23:52:32 +0200 Subject: [PATCH] Added traffic to Statistics --- lib/nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nodes.py b/lib/nodes.py index 2d0769d..3c0fa2f 100644 --- a/lib/nodes.py +++ b/lib/nodes.py @@ -92,6 +92,7 @@ def import_statistics(nodes, stats): add(node, stats, 'memory_usage', ['memory'], lambda d: 1 - d['free'] / d['total']) add(node, stats, 'rootfs_usage', ['rootfs_usage']) + add(node, stats, 'traffic', ['traffic']) def import_mesh_ifs_vis_data(nodes, vis_data):