From 58f06caede3a66531c10d4243cca449a3656b4ee Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 13 Nov 2019 20:57:25 +0100 Subject: [PATCH] Use return value from OOMAnalyser.analyse() directly --- OOMAnalyser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index b99319c..c6c6f94 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -614,7 +614,7 @@ class OOMAnalyser(object): return dist def analyse(self): - """Return the analysis of the given OOM object""" + """Extract and calculate values from the given OOM object""" self._extract_from_oom_text() self._calc_from_oom_details() return self.results @@ -995,8 +995,7 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k # analyse analyser = OOMAnalyser(self.oom) - analyser.analyse() - self.oom_details = analyser.results + self.oom_details = analyser.analyse() # display results self.show()