diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2017-06-07 21:08:27 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-08 18:13:30 +0200 |
commit | 81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36 (patch) | |
tree | 6d7459b4442d3460a13b5f8958dca766b07f433b /tools/kvm | |
parent | 124c2fc9fdf5fb1d9cea4707d7e5471e317ba3bf (diff) | |
download | linux-riscv-81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36.tar.gz linux-riscv-81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36.tar.bz2 linux-riscv-81468d73b6eb0ed251e7c77f2cc44c0f4edb4d36.zip |
tools/kvm_stat: fix undue use of initial sleeptime
We should not use the initial sleeptime for any key press that does not
switch to a different screen, as that introduces an unaesthetic flicker due
to two updates in quick succession.
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-x | tools/kvm/kvm_stat/kvm_stat | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index b571584419ae..6e29e5b072ab 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -1142,14 +1142,12 @@ class Tui(object): if char == 'x': self.refresh_header() self.update_drilldown() - sleeptime = DELAY_INITIAL if char == 'q': break if char == 'c': self.stats.fields_filter = DEFAULT_REGEX self.refresh_header(0) self.update_pid(0) - sleeptime = DELAY_INITIAL if char == 'f': self.show_filter_selection() sleeptime = DELAY_INITIAL @@ -1162,7 +1160,6 @@ class Tui(object): if char == 'r': self.refresh_header() self.stats.reset() - sleeptime = DELAY_INITIAL except KeyboardInterrupt: break except curses.error: |