diff options
author | Mattias Andrée <maandree@kth.se> | 2016-10-03 13:32:33 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-10-03 13:32:33 +0200 |
commit | 9128ab1c9469622ac54522486584401570d3fab4 (patch) | |
tree | 9a87827df08a6e997606d7fd024a723c1f13117d | |
parent | snmp, snmp6: add keys (diff) | |
download | xpybar-9128ab1c9469622ac54522486584401570d3fab4.tar.gz xpybar-9128ab1c9469622ac54522486584401570d3fab4.tar.bz2 xpybar-9128ab1c9469622ac54522486584401570d3fab4.tar.xz |
fix snmp
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/plugins/snmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |