Convert score automatically to integer

Convert killed_proc_score and trigger_proc_oomscore to integer values
This commit is contained in:
Carsten Grohmann 2020-02-04 20:30:11 +01:00
parent 81c8333017
commit da77369418

View File

@ -576,7 +576,7 @@ class OOMAnalyser(object):
self.results[item] = '<not found>'
continue
if item.endswith('_kb') or item.endswith('_pages') or item.endswith('_pid') or \
item == 'trigger_proc_order':
item in ['killed_proc_score', 'trigger_proc_order', 'trigger_proc_oomscore']:
try:
self.results[item] = int(self.results[item])
except: