|
|
9bac43 |
From 6b557dc235257a9d4e69532f79007a9a4de854c6 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Date: Tue, 17 Oct 2017 19:15:54 +0200
|
|
|
9bac43 |
Subject: [PATCH 49/69] tools/kvm_stat: display message indicating lack of
|
|
|
9bac43 |
events
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Message-id: <20171017191605.2378-29-david@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77340
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 28/39] tools/kvm_stat: display message indicating lack of events
|
|
|
9bac43 |
Bugzilla: 1497137
|
|
|
9bac43 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Upstream-status: linux.git 5725393764a342b6a5420fdd10184984ca08b5f6
|
|
|
9bac43 |
|
|
|
9bac43 |
commit 5725393764a342b6a5420fdd10184984ca08b5f6
|
|
|
9bac43 |
Author: Stefan Raspl <raspl@linux.vnet.ibm.com>
|
|
|
9bac43 |
Date: Wed Jun 7 21:08:35 2017 +0200
|
|
|
9bac43 |
|
|
|
9bac43 |
tools/kvm_stat: display message indicating lack of events
|
|
|
9bac43 |
|
|
|
9bac43 |
Give users some indication on the reason why no data is displayed on the
|
|
|
9bac43 |
screen yet.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
|
|
|
9bac43 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
scripts/kvm/kvm_stat | 2 ++
|
|
|
9bac43 |
1 file changed, 2 insertions(+)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
index 53dcd40..790fbce 100755
|
|
|
9bac43 |
--- a/scripts/kvm/kvm_stat
|
|
|
9bac43 |
+++ b/scripts/kvm/kvm_stat
|
|
|
9bac43 |
@@ -1013,6 +1013,8 @@ class Tui(object):
|
|
|
9bac43 |
(key, values[0], values[0] * 100 / total,
|
|
|
9bac43 |
cur))
|
|
|
9bac43 |
row += 1
|
|
|
9bac43 |
+ if row == 3:
|
|
|
9bac43 |
+ self.screen.addstr(4, 1, 'No matching events reported yet')
|
|
|
9bac43 |
self.screen.refresh()
|
|
|
9bac43 |
|
|
|
9bac43 |
def show_filter_selection(self):
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|