From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: [PATCH 1/2] kvm_stat: make the initial sleep shorter
Date: Wed, 1 Sep 2010 10:05:06 +0300 [thread overview]
Message-ID: <1283324707-16587-2-git-send-email-avi@redhat.com> (raw)
In-Reply-To: <1283324707-16587-1-git-send-email-avi@redhat.com>
So we can see results faster
Signed-off-by: Avi Kivity <avi@redhat.com>
---
kvm/kvm_stat | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kvm/kvm_stat b/kvm/kvm_stat
index e68ca4e..b031d48 100755
--- a/kvm/kvm_stat
+++ b/kvm/kvm_stat
@@ -325,9 +325,11 @@ def tui(screen, stats):
row += 1
screen.refresh()
+ sleeptime = 0.25
while True:
refresh()
- curses.halfdelay(30)
+ curses.halfdelay(int(sleeptime * 10))
+ sleeptime = 3
try:
c = screen.getkey()
if c == 'q':
--
1.7.1
next prev parent reply other threads:[~2010-09-01 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 7:05 [PATCH 0/2] Improve kvm_stat delta display Avi Kivity
2010-09-01 7:05 ` Avi Kivity [this message]
2010-09-01 7:05 ` [PATCH 2/2] kvm_stat: scale delta column to make it a rate Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1283324707-16587-2-git-send-email-avi@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).