|
|
9bac43 |
From d54183dd4ba5e326ebe193815338b9824d5fef56 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Date: Tue, 17 Oct 2017 19:15:46 +0200
|
|
|
9bac43 |
Subject: [PATCH 41/69] tools/kvm_stat: fix undue use of initial sleeptime
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Message-id: <20171017191605.2378-21-david@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77331
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 20/39] tools/kvm_stat: fix undue use of initial sleeptime
|
|
|
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 81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36
|
|
|
9bac43 |
|
|
|
9bac43 |
commit 81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36
|
|
|
9bac43 |
Author: Stefan Raspl <raspl@linux.vnet.ibm.com>
|
|
|
9bac43 |
Date: Wed Jun 7 21:08:27 2017 +0200
|
|
|
9bac43 |
|
|
|
9bac43 |
tools/kvm_stat: fix undue use of initial sleeptime
|
|
|
9bac43 |
|
|
|
9bac43 |
We should not use the initial sleeptime for any key press that does not
|
|
|
9bac43 |
switch to a different screen, as that introduces an unaesthetic flicker due
|
|
|
9bac43 |
to two updates in quick succession.
|
|
|
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 | 3 ---
|
|
|
9bac43 |
1 file changed, 3 deletions(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
index b571584..6e29e5b 100755
|
|
|
9bac43 |
--- a/scripts/kvm/kvm_stat
|
|
|
9bac43 |
+++ b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
@@ -1142,14 +1142,12 @@ class Tui(object):
|
|
|
9bac43 |
if char == 'x':
|
|
|
9bac43 |
self.refresh_header()
|
|
|
9bac43 |
self.update_drilldown()
|
|
|
9bac43 |
- sleeptime = DELAY_INITIAL
|
|
|
9bac43 |
if char == 'q':
|
|
|
9bac43 |
break
|
|
|
9bac43 |
if char == 'c':
|
|
|
9bac43 |
self.stats.fields_filter = DEFAULT_REGEX
|
|
|
9bac43 |
self.refresh_header(0)
|
|
|
9bac43 |
self.update_pid(0)
|
|
|
9bac43 |
- sleeptime = DELAY_INITIAL
|
|
|
9bac43 |
if char == 'f':
|
|
|
9bac43 |
self.show_filter_selection()
|
|
|
9bac43 |
sleeptime = DELAY_INITIAL
|
|
|
9bac43 |
@@ -1162,7 +1160,6 @@ class Tui(object):
|
|
|
9bac43 |
if char == 'r':
|
|
|
9bac43 |
self.refresh_header()
|
|
|
9bac43 |
self.stats.reset()
|
|
|
9bac43 |
- sleeptime = DELAY_INITIAL
|
|
|
9bac43 |
except KeyboardInterrupt:
|
|
|
9bac43 |
break
|
|
|
9bac43 |
except curses.error:
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|