diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2017-06-07 21:08:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-08 18:17:18 +0200 |
commit | 5725393764a342b6a5420fdd10184984ca08b5f6 (patch) | |
tree | f8640f6b843f11c4025b7836b4bd98b11a720629 | |
parent | 62d1b6cc24d0dedde89e6a39aae1711270aee1c9 (diff) |
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>
-rwxr-xr-x | tools/kvm/kvm_stat/kvm_stat | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 53dcd406e9d6..790fbce95bd6 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -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): |