提交 2da9d4aa 编写于 作者: S Stefan Raspl 提交者: Paolo Bonzini

tools/kvm_stat: remove unnecessary header redraws

Certain interactive commands will not modify any information displayed in
the header, hence we can skip them.
Signed-off-by: NStefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 81468d73
......@@ -1140,7 +1140,6 @@ class Tui(object):
try:
char = self.screen.getkey()
if char == 'x':
self.refresh_header()
self.update_drilldown()
if char == 'q':
break
......@@ -1158,7 +1157,6 @@ class Tui(object):
self.show_vm_selection_by_pid()
sleeptime = DELAY_INITIAL
if char == 'r':
self.refresh_header()
self.stats.reset()
except KeyboardInterrupt:
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册