From 089f749a7b9821c97174dad522d5b181161d5a61 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Oct 2016 06:10:51 +0200 Subject: fix softirqs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/softirqs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/softirqs.py b/src/plugins/softirqs.py index 1413cb1..9c794a8 100644 --- a/src/plugins/softirqs.py +++ b/src/plugins/softirqs.py @@ -38,13 +38,13 @@ class SoftIRQs: softirqs = softirqs.decode('utf-8', 'replace') filter_ = lambda array : filter(lambda x : not x == '', array) - softirqs = map(lambda x : x.split(' '), filter_(softirqs.split('\n')[1:])) + softirqs = map(lambda x : list(filter_(x.split(' '))), filter_(softirqs.split('\n')[1:])) self.__info = {} self.keys = [] for line in softirqs: self.__info[line[0][:-1]] = [int(x) for x in line[1:]] - self.keys.append(line[0]) + self.keys.append(line[0][:-1]) def __contains__(self, key): -- cgit v1.2.3-70-g09d2