projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d1b6c
)
tools/kvm_stat: display message indicating lack of events
author
Stefan Raspl
<raspl@linux.vnet.ibm.com>
Wed, 7 Jun 2017 19:08:35 +0000
(21:08 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 8 Jun 2017 16:17:18 +0000
(18:17 +0200)
Give users some indication on the reason why no data is displayed on the
screen yet.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/kvm/kvm_stat/kvm_stat
patch
|
blob
|
history
diff --git
a/tools/kvm/kvm_stat/kvm_stat
b/tools/kvm/kvm_stat/kvm_stat
index
53dcd40
..
790fbce
100755
(executable)
--- a/
tools/kvm/kvm_stat/kvm_stat
+++ b/
tools/kvm/kvm_stat/kvm_stat
@@
-1013,6
+1013,8
@@
class Tui(object):
(key, values[0], values[0] * 100 / total,
cur))
row += 1
+ if row == 3:
+ self.screen.addstr(4, 1, 'No matching events reported yet')
self.screen.refresh()
def show_filter_selection(self):