Blame SOURCES/kvm-tools-kvm_stat-fix-undue-use-of-initial-sleeptime.patch

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