提交 138b6879 编写于 作者: F fraoustin

Update glances.py

add manage keyboard for terminal windows
add correction for multicpu
上级 81e89055
......@@ -2516,13 +2516,13 @@ class glancesScreen:
# Do you want it ?
# If yes then tag_percpu = True
if self.percpu_tag:
tag_percpu = screen_x > self.cpu_x + 79 + (len(percpu) - 1) * 10
tag_percpu = screen_x > self.cpu_x + 79 + max(0,(len(percpu) - 3)) * 10
else:
tag_percpu = False
# compute x offset
if tag_percpu:
offset_x = (len(percpu) - 1) * 8
offset_x = max(0,(len(percpu) - 3)) * 8
elif tag_extendedcpu:
offset_x = 16
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册