提交 57253937 编写于 作者: S Stefan Raspl 提交者: Paolo Bonzini

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: NStefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 62d1b6cc
...@@ -1013,6 +1013,8 @@ class Tui(object): ...@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册