aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-10-03 05:47:31 +0200
committerMattias Andrée <maandree@kth.se>2016-10-03 05:47:31 +0200
commit1595a60118b4517010e4a9908bb164b9e9b391c4 (patch)
treeb2f9a6d7322d3151a7e49a53e26fca17627384bf
parentadd todo (diff)
downloadxpybar-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.py4
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):