summaryrefslogtreecommitdiffstats
path: root/glances/plugins/alert/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/plugins/alert/__init__.py')
-rw-r--r--glances/plugins/alert/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glances/plugins/alert/__init__.py b/glances/plugins/alert/__init__.py
index 950acec5..9cc2fcc0 100644
--- a/glances/plugins/alert/__init__.py
+++ b/glances/plugins/alert/__init__.py
@@ -183,7 +183,7 @@ class PluginModel(GlancesPluginModel):
# Set the maximum number of events to display
if config is not None and (config.has_section('alert') or config.has_section('alerts')):
- glances_events.set_max_events(config.get_int_value('alert', 'max_events'))
+ glances_events.set_max_events(config.get_int_value('alert', 'max_events', default=10))
def update(self):
"""Nothing to do here. Just return the global glances_log."""
@@ -211,6 +211,7 @@ class PluginModel(GlancesPluginModel):
# New line
ret.append(self.curse_new_line())
# Start
+ # TODO: Related to #2591, manege TZ in order to make it work inside containers
msg = str(datetime.fromtimestamp(alert[0]))
ret.append(self.curse_add_line(msg))
# Duration