qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 02/11] kvm_stat: add column headers to text UI


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 02/11] kvm_stat: add column headers to text UI
Date: Tue, 10 Mar 2015 11:37:51 +0100

From: Stefan Hajnoczi <address@hidden>

The curses user interface shows both the accumulated total and the
current event counts.  Add column headers so it's clear what the numbers
mean.

Signed-off-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Ademar Reis <address@hidden>
Reviewed-by: Wei Huang <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 scripts/kvm/kvm_stat | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
index c65cabd..7e5d256 100755
--- a/scripts/kvm/kvm_stat
+++ b/scripts/kvm/kvm_stat
@@ -519,7 +519,10 @@ def tui(screen, stats):
     def refresh(sleeptime):
         screen.erase()
         screen.addstr(0, 0, 'kvm statistics')
-        row = 2
+        screen.addstr(2, 1, 'Event')
+        screen.addstr(2, 1 + label_width + number_width - len('Total'), 
'Total')
+        screen.addstr(2, 1 + label_width + number_width + 8 - len('Current'), 
'Current')
+        row = 3
         s = stats.get()
         def sortkey(x):
             if s[x][1]:
-- 
2.3.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]