提交 e0bbd65b 编写于 作者: N Nicolas Hennion

Load-5 alert are no longer logged

上级 08d73bae
......@@ -50,9 +50,6 @@ class Config:
self.parser = RawConfigParser()
#!!! Is it necessary ???
# self.load()
def load(self):
"""
Load a config file from the list of paths, if it exists
......@@ -64,7 +61,7 @@ class Config:
self.parser.read(path, encoding='utf-8')
else:
self.parser.read(path)
print(_("DEBUG: Read configuration file %s") % path)
# print(_("DEBUG: Read configuration file %s") % path)
self.config_path = path
except UnicodeDecodeError as e:
print(_("Error decoding config file '%s': %s") % (path, e))
......
......@@ -104,7 +104,7 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
msg = "{0}".format(format(self.stats['min5'], '>5.2f'))
ret.append(self.curse_add_line(
msg, self.get_alert_log(self.stats['min5'], max=100 * self.core_plugin.update()["log"])))
msg, self.get_alert(self.stats['min5'], max=100 * self.core_plugin.update()["log"])))
# New line
ret.append(self.curse_new_line())
# 15min load
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册