Skip to content

Commit 5725393

Browse files
Stefan Rasplbonzini
authored andcommitted
tools/kvm_stat: display message indicating lack of events
Give users some indication on the reason why no data is displayed on the screen yet. Signed-off-by: Stefan Raspl <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 62d1b6c commit 5725393

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/kvm/kvm_stat/kvm_stat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,8 @@ class Tui(object):
10131013
(key, values[0], values[0] * 100 / total,
10141014
cur))
10151015
row += 1
1016+
if row == 3:
1017+
self.screen.addstr(4, 1, 'No matching events reported yet')
10161018
self.screen.refresh()
10171019

10181020
def show_filter_selection(self):

0 commit comments

Comments
 (0)