From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm_stat: ignore events that have never occured Date: Mon, 06 Sep 2010 11:55:55 +0300 Message-ID: <4C84AC9B.9070807@redhat.com> References: <1283325449-18321-1-git-send-email-avi@redhat.com> <4C84A8D1.4090805@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Jes Sorensen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53053 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862Ab0IFIz6 (ORCPT ); Mon, 6 Sep 2010 04:55:58 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o868twGQ024801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Sep 2010 04:55:58 -0400 In-Reply-To: <4C84A8D1.4090805@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 09/06/2010 11:39 AM, Jes Sorensen wrote: > On 09/01/10 09:17, Avi Kivity wrote: >> Less cluttered display. >> >> Signed-off-by: Avi Kivity >> --- >> kvm/kvm_stat | 2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/kvm/kvm_stat b/kvm/kvm_stat >> index 4a16277..d373c60 100755 >> --- a/kvm/kvm_stat >> +++ b/kvm/kvm_stat >> @@ -315,6 +315,8 @@ def tui(screen, stats): >> if row>= screen.getmaxyx()[0]: >> break >> values = s[key] >> + if not values[0] and not values[1]: >> + break >> col = 1 >> screen.addstr(row, col, key) >> col += label_width > Is this just for the live display update, or does it also affect single > run outputs? > Just the live update. -- error compiling committee.c: too many arguments to function