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 <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Stefan Raspl 2017-06-07 21:08:35 +02:00 коммит произвёл Paolo Bonzini
Родитель 62d1b6cc24
Коммит 5725393764
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1013,6 +1013,8 @@ class Tui(object):
(key, values[0], values[0] * 100 / total, (key, values[0], values[0] * 100 / total,
cur)) cur))
row += 1 row += 1
if row == 3:
self.screen.addstr(4, 1, 'No matching events reported yet')
self.screen.refresh() self.screen.refresh()
def show_filter_selection(self): def show_filter_selection(self):