提交 833d388b 编写于 作者: N Nicolargo

Correct some PEP8 issues

上级 b71fc66a
......@@ -210,7 +210,7 @@ class Plugin(GlancesPlugin):
msg = '{:>6.1f}'.format(p['cpu_percent'])
alert = self.get_alert(p['cpu_percent'],
highlight_zero=False,
is_max=(p['cpu_percent']==self.max_values['cpu_percent']),
is_max=(p['cpu_percent'] == self.max_values['cpu_percent']),
header="cpu")
ret.append(self.curse_add_line(msg, alert))
else:
......@@ -221,7 +221,7 @@ class Plugin(GlancesPlugin):
msg = '{:>6.1f}'.format(p['memory_percent'])
alert = self.get_alert(p['memory_percent'],
highlight_zero=False,
is_max=(p['memory_percent']==self.max_values['memory_percent']),
is_max=(p['memory_percent'] == self.max_values['memory_percent']),
header="mem")
ret.append(self.curse_add_line(msg, alert))
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册