From 9128ab1c9469622ac54522486584401570d3fab4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Oct 2016 13:32:33 +0200 Subject: fix snmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/snmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/snmp.py b/src/plugins/snmp.py index 90e7554..6d8b87b 100644 --- a/src/plugins/snmp.py +++ b/src/plugins/snmp.py @@ -40,7 +40,7 @@ class SNMP: filter_ = lambda array : filter(lambda x : not x == '', array) snmp = list(map(lambda x : x.split(' '), filter_(snmp.split('\n')))) snmp_h = filter(lambda i : i % 2 == 0, range(len(snmp))) - snmp_d = filter(lambda i : i % 2 == 0, range(len(snmp))) + snmp_d = filter(lambda i : i % 2 == 1, range(len(snmp))) snmp_h = list(map(lambda i : snmp[i], snmp_h)) snmp_d = list(map(lambda i : snmp[i], snmp_d)) snmp = zip(snmp_h, snmp_d) -- cgit v1.2.3-70-g09d2