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:
5725393
)
tools/kvm_stat: make heading look a bit more like 'top'
author
Stefan Raspl
<raspl@linux.vnet.ibm.com>
Wed, 7 Jun 2017 19:08:36 +0000
(21:08 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 8 Jun 2017 16:17:28 +0000
(18:17 +0200)
Print header in standout font just like the 'top' command does.
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 790fbce95bd60ba52f282924523658fae2932350..35147e4877aeba9b9a5e00f5c8470adaae969a9e 100755
(executable)
--- a/
tools/kvm/kvm_stat/kvm_stat
+++ b/
tools/kvm/kvm_stat/kvm_stat
@@
-982,7
+982,8
@@
class Tui(object):
regex = regex[:MAX_REGEX_LEN] + '...'
self.screen.addstr(1, 17, 'regex filter: {0}'.format(regex))
self.screen.addstr(2, 1, '%-40s %10s%7s %7s' %
- ('Event', 'Total', '%Total', 'Current'))
+ ('Event', 'Total', '%Total', 'Current'),
+ curses.A_STANDOUT)
self.screen.addstr(4, 1, 'Collecting data...')
self.screen.refresh()