diff options
author | Mattias Andrée <maandree@kth.se> | 2016-10-03 05:47:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-10-03 05:47:31 +0200 |
commit | 1595a60118b4517010e4a9908bb164b9e9b391c4 (patch) | |
tree | b2f9a6d7322d3151a7e49a53e26fca17627384bf | |
parent | add todo (diff) | |
download | xpybar-1595a60118b4517010e4a9908bb164b9e9b391c4.tar.gz xpybar-1595a60118b4517010e4a9908bb164b9e9b391c4.tar.bz2 xpybar-1595a60118b4517010e4a9908bb164b9e9b391c4.tar.xz |
softirqs: add keys
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/plugins/softirqs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/softirqs.py b/src/plugins/softirqs.py index 0471bda..1413cb1 100644 --- a/src/plugins/softirqs.py +++ b/src/plugins/softirqs.py @@ -23,6 +23,8 @@ from util import * class SoftIRQs: ''' Data from /proc/softirqs + + @variable keys:list<str> List of avaiable keys ''' @@ -39,8 +41,10 @@ class SoftIRQs: softirqs = map(lambda x : 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]) def __contains__(self, key): |