Skip to content

Commit

Permalink
tools/kvm_stat: display message indicating lack of events
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Stefan Raspl authored and bonzini committed Jun 8, 2017
1 parent 62d1b6c commit 5725393
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/kvm/kvm_stat/kvm_stat
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5725393

Please sign in to comment.