From b75d1f24c3e6678f92252f899a4e4b9ee55b3e1c Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 8 Nov 2025 19:34:31 +0100 Subject: [PATCH] Correct an issue with events type name (unattended _ in the name) --- glances/events_list.py | 1 + glances/plugins/plugin/model.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glances/events_list.py b/glances/events_list.py index 8e2e4fae..d423e544 100644 --- a/glances/events_list.py +++ b/glances/events_list.py @@ -271,6 +271,7 @@ class GlancesEventsList: event_time, event_index, event_state, event_type, event_value, proc_list, proc_desc, global_message ) + # logger.info(self.events_list) return self.len() def _create_event(self, event_time, event_state, event_type, event_value, proc_desc, global_message): diff --git a/glances/plugins/plugin/model.py b/glances/plugins/plugin/model.py index 2344ba60..60d13d4f 100644 --- a/glances/plugins/plugin/model.py +++ b/glances/plugins/plugin/model.py @@ -669,9 +669,9 @@ class GlancesPluginModel: def get_stat_name(self, header=None, action_key=None): """Return the stat name with an optional header and action_key""" ret = self.plugin_name - if header is not None: + if header is not None and header != '': ret += '_' + header - if action_key is not None: + if action_key is not None and action_key != '': ret += '_' + action_key return ret