|
|
9bac43 |
From 6514729674c1054580cd85feca527740f5476813 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Date: Tue, 17 Oct 2017 19:15:47 +0200
|
|
|
9bac43 |
Subject: [PATCH 42/69] tools/kvm_stat: remove unnecessary header redraws
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Message-id: <20171017191605.2378-22-david@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77327
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 21/39] tools/kvm_stat: remove unnecessary header redraws
|
|
|
9bac43 |
Bugzilla: 1497137
|
|
|
9bac43 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Upstream-status: linux.git 2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb
|
|
|
9bac43 |
|
|
|
9bac43 |
commit 2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb
|
|
|
9bac43 |
Author: Stefan Raspl <raspl@linux.vnet.ibm.com>
|
|
|
9bac43 |
Date: Wed Jun 7 21:08:28 2017 +0200
|
|
|
9bac43 |
|
|
|
9bac43 |
tools/kvm_stat: remove unnecessary header redraws
|
|
|
9bac43 |
|
|
|
9bac43 |
Certain interactive commands will not modify any information displayed in
|
|
|
9bac43 |
the header, hence we can skip them.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
|
|
|
9bac43 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
scripts/kvm/kvm_stat | 2 --
|
|
|
9bac43 |
1 file changed, 2 deletions(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
index 6e29e5b..d2526b6 100755
|
|
|
9bac43 |
--- a/scripts/kvm/kvm_stat
|
|
|
9bac43 |
+++ b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
@@ -1140,7 +1140,6 @@ class Tui(object):
|
|
|
9bac43 |
try:
|
|
|
9bac43 |
char = self.screen.getkey()
|
|
|
9bac43 |
if char == 'x':
|
|
|
9bac43 |
- self.refresh_header()
|
|
|
9bac43 |
self.update_drilldown()
|
|
|
9bac43 |
if char == 'q':
|
|
|
9bac43 |
break
|
|
|
9bac43 |
@@ -1158,7 +1157,6 @@ class Tui(object):
|
|
|
9bac43 |
self.show_vm_selection_by_pid()
|
|
|
9bac43 |
sleeptime = DELAY_INITIAL
|
|
|
9bac43 |
if char == 'r':
|
|
|
9bac43 |
- self.refresh_header()
|
|
|
9bac43 |
self.stats.reset()
|
|
|
9bac43 |
except KeyboardInterrupt:
|
|
|
9bac43 |
break
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|