Refactor Event add / update calls

pull/2582/head
nicolargo 2023-11-04 11:43:08 +01:00
parent 8f6fe14ea1
commit af49f970e3
1 changed files with 2 additions and 2 deletions

View File

@ -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.