summaryrefslogtreecommitdiffstats
path: root/tools/kvm
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2017-06-07 21:08:28 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-08 18:13:37 +0200
commit2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb (patch)
tree87a13849249340e1d8b84b879734ba7f260620d4 /tools/kvm
parenttools/kvm_stat: fix undue use of initial sleeptime (diff)
downloadlinux-2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb.tar.xz
linux-2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb.zip
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: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/kvm')
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index 6e29e5b072ab..d2526b698db4 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -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