Received: from eggs.gnu.org ([2001:4830:134:3::10]:35343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVHYJ-0005RG-Lb for qemu-devel@nongnu.org; Tue, 10 Mar 2015 06:38:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVHYA-0002sM-LB for qemu-devel@nongnu.org; Tue, 10 Mar 2015 06:38:19 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:36640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVHYA-0002sC-EM for qemu-devel@nongnu.org; Tue, 10 Mar 2015 06:38:10 -0400 Received: by wesw55 with SMTP id w55so773271wes.3 for ; Tue, 10 Mar 2015 03:38:09 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 10 Mar 2015 11:37:51 +0100 Message-Id: <1425983880-26906-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1425983880-26906-1-git-send-email-pbonzini@redhat.com> References: <1425983880-26906-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 02/11] kvm_stat: add column headers to text UI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi From: Stefan Hajnoczi 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 Reviewed-by: Ademar Reis Reviewed-by: Wei Huang Message-Id: <1425338947-10296-2-git-send-email-stefanha@redhat.com> Signed-off-by: Paolo Bonzini --- 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