projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/tools/kvm/kvm_stat/kvm_stat
b/tools/kvm/kvm_stat/kvm_stat
index 53dcd406e9d698a6f5612d3afa53318046a8ecd3..790fbce95bd60ba52f282924523658fae2932350 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):