From: Stefan Raspl Date: Wed, 7 Jun 2017 19:08:28 +0000 (+0200) Subject: tools/kvm_stat: remove unnecessary header redraws X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Paolo Bonzini --- 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