diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-11-04 11:43:08 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-11-04 11:43:08 +0100 |
commit | af49f970e3cde547a69a2105f45918d82bce3725 (patch) | |
tree | 18cd706b5b663d7e3295b215d0651fb4a1f6361e | |
parent | 8f6fe14ea11c7970bdd8dfbf0bee97a78ed9fc33 (diff) |
Refactor Event add / update calls
-rw-r--r-- | glances/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glances/events.py b/glances/events.py index 76ee2fd5..956364f3 100644 --- a/glances/events.py +++ b/glances/events.py @@ -106,7 +106,7 @@ class GlancesEvents(object): event_index = self.__event_exist(event_type) if event_index < 0: # Event did not exist, add it - self._create_event(event_state, event_type, event_value, proc_list, proc_desc, peak_time) + self._create_event(event_state, event_type, event_value, proc_desc) else: # Event exist, update it self._update_event(event_index, @@ -114,7 +114,7 @@ class GlancesEvents(object): return self.len() - def _create_event(self, event_state, event_type, event_value, proc_list, proc_desc, peak_time): + def _create_event(self, event_state, event_type, event_value, proc_desc): """Add a new item in the log list. Item is added only if the criticality (event_state) is WARNING or CRITICAL. |