diff options
author | Mattias Andrée <maandree@kth.se> | 2016-10-03 06:10:51 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-10-03 06:10:51 +0200 |
commit | 089f749a7b9821c97174dad522d5b181161d5a61 (patch) | |
tree | b88e335b90f59b0a50e29a154c3c3a0818d02b5c /src/plugins | |
parent | softirqs: add keys (diff) | |
download | xpybar-089f749a7b9821c97174dad522d5b181161d5a61.tar.gz xpybar-089f749a7b9821c97174dad522d5b181161d5a61.tar.bz2 xpybar-089f749a7b9821c97174dad522d5b181161d5a61.tar.xz |
fix softirqs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/softirqs.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |