From da77369418c0ec0c0dcd5199ae8cc1dc7989efe6 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Tue, 4 Feb 2020 20:30:11 +0100 Subject: [PATCH] Convert score automatically to integer Convert killed_proc_score and trigger_proc_oomscore to integer values --- OOMAnalyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 6713e6a..26cd141 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -576,7 +576,7 @@ class OOMAnalyser(object): self.results[item] = '' 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: