Blame SOURCES/kvm-tools-kvm_stat-rename-Current-column-to-CurAvg-s.patch

4a2fec
From 8ba2fd89d16cb721110ecff6e95b6eca0a2325f9 Mon Sep 17 00:00:00 2001
4a2fec
From: David Hildenbrand <david@redhat.com>
4a2fec
Date: Tue, 17 Oct 2017 19:15:56 +0200
4a2fec
Subject: [PATCH 51/69] tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
4a2fec
4a2fec
RH-Author: David Hildenbrand <david@redhat.com>
4a2fec
Message-id: <20171017191605.2378-31-david@redhat.com>
4a2fec
Patchwork-id: 77341
4a2fec
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 30/39] tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
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 38e89c37a1e05e6e16af582b980534abda29a4d9
4a2fec
4a2fec
commit 38e89c37a1e05e6e16af582b980534abda29a4d9
4a2fec
Author: Stefan Raspl <raspl@linux.vnet.ibm.com>
4a2fec
Date:   Wed Jun 7 21:08:37 2017 +0200
4a2fec
4a2fec
    tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
4a2fec
4a2fec
    'Current' can be misleading as it doesn't tell whether this is the amount
4a2fec
    of events in the last interval or the current average per second.
4a2fec
    Note that this necessitates widening the respective column by one more
4a2fec
    character.
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 | 6 +++---
4a2fec
 1 file changed, 3 insertions(+), 3 deletions(-)
4a2fec
4a2fec
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
4a2fec
index 35147e4..a9e7ea6 100755
4a2fec
--- a/scripts/kvm/kvm_stat
4a2fec
+++ b/scripts/kvm/kvm_stat
4a2fec
@@ -981,8 +981,8 @@ class Tui(object):
4a2fec
             if len(regex) > MAX_REGEX_LEN:
4a2fec
                 regex = regex[:MAX_REGEX_LEN] + '...'
4a2fec
             self.screen.addstr(1, 17, 'regex filter: {0}'.format(regex))
4a2fec
-        self.screen.addstr(2, 1, '%-40s %10s%7s %7s' %
4a2fec
-                           ('Event', 'Total', '%Total', 'Current'),
4a2fec
+        self.screen.addstr(2, 1, '%-40s %10s%7s %8s' %
4a2fec
+                           ('Event', 'Total', '%Total', 'CurAvg/s'),
4a2fec
                            curses.A_STANDOUT)
4a2fec
         self.screen.addstr(4, 1, 'Collecting data...')
4a2fec
         self.screen.refresh()
4a2fec
@@ -1010,7 +1010,7 @@ class Tui(object):
4a2fec
                 break
4a2fec
             if values[0] is not None:
4a2fec
                 cur = int(round(values[1] / sleeptime)) if values[1] else ''
4a2fec
-                self.screen.addstr(row, 1, '%-40s %10d%7.1f %7s' %
4a2fec
+                self.screen.addstr(row, 1, '%-40s %10d%7.1f %8s' %
4a2fec
                                    (key, values[0], values[0] * 100 / total,
4a2fec
                                     cur))
4a2fec
             row += 1
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec