From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSZm6-0005HU-7Y for qemu-devel@nongnu.org; Mon, 02 Mar 2015 18:29:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSZm0-0000cQ-4K for qemu-devel@nongnu.org; Mon, 02 Mar 2015 18:29:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSZlz-0000cI-TR for qemu-devel@nongnu.org; Mon, 02 Mar 2015 18:29:16 -0500 From: Stefan Hajnoczi Date: Mon, 2 Mar 2015 17:29:06 -0600 Message-Id: <1425338947-10296-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1425338947-10296-1-git-send-email-stefanha@redhat.com> References: <1425338947-10296-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] 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: Wei Huang , Avi Kivity , Stefan Hajnoczi , areis@redhat.com 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 --- 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.1.0