提交 fe086a00 编写于 作者: N nicolargo

Glances fails without network interface #1535

上级 d7cf39f7
......@@ -633,9 +633,10 @@ class _GlancesCurses(object):
# First line
self.new_line()
self.space_between_column = 0
l_uptime = (self.get_stats_display_width(stat_display["system"]) +
self.get_stats_display_width(stat_display["ip"]) +
self.get_stats_display_width(stat_display["uptime"]) + 1)
l_uptime = 1
for i in ['system', 'ip', 'uptime']:
if i in stat_display:
l_uptime += self.get_stats_display_width(stat_display[i])
self.display_plugin(
stat_display["system"],
display_optional=(self.screen.getmaxyx()[1] >= l_uptime))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册