Blame SOURCES/kvm-tools-kvm_stat-display-message-indicating-lack-of-ev.patch

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