From 924fc37f4895c6669388b3df1b18c67d3550bfad Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Thu, 16 Mar 2023 22:18:37 +0100 Subject: [PATCH] Remove unnecessary code --- OOMAnalyser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 721e46a..f725270 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -4391,9 +4391,6 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss: self.oom_result = analyser.oom_result self.show_oom_details() self.update_toc() - else: - # don't show results - just return - return def load_from_form(self): """ @@ -4454,7 +4451,9 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss: show_elements(".js-memory-fragmentation--show") if self.oom_result.mem_fragmented: show_elements(".js-memory-heavy-fragmentation--show") + hide_elements(".js-memory-no-heavy-fragmentation--show") else: + hide_elements(".js-memory-heavy-fragmentation--show") show_elements(".js-memory-no-heavy-fragmentation--show") def _show_page_size(self):