From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: Re: [PATCH] kvm_stat: ignore events that have never occured Date: Mon, 06 Sep 2010 10:39:45 +0200 Message-ID: <4C84A8D1.4090805@redhat.com> References: <1283325449-18321-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60467 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253Ab0IFIjr (ORCPT ); Mon, 6 Sep 2010 04:39:47 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o868dlHD000979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Sep 2010 04:39:47 -0400 In-Reply-To: <1283325449-18321-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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? If the latter, it will break scripting where you do a first run, then a second run and then calculate the result based on the changes. Cheers, Jes