From 99da85906b4cfff5d1cfb9f6c591fbbdde38b2d7 Mon Sep 17 00:00:00 2001 From: RazCrimson <52282402+RazCrimson@users.noreply.github.com> Date: Sun, 27 Mar 2022 02:09:35 +0530 Subject: [PATCH] fix: `N` key (un)freezing time instead show/hide --- glances/plugins/glances_now.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glances/plugins/glances_now.py b/glances/plugins/glances_now.py index 20ffd9d7..cf094e0e 100644 --- a/glances/plugins/glances_now.py +++ b/glances/plugins/glances_now.py @@ -69,6 +69,9 @@ class Plugin(GlancesPlugin): # Init the return message ret = [] + if not self.stats or self.is_disabled(): + return ret + # Build the string message # 23 is the padding for the process list msg = '{:23}'.format(self.stats)