repository: /home/avi/kvm
branch: master
commit f090f3a6e3cf34f419a3cd4f5355069bdf3d1b1a
Author: Avi Kivity <[EMAIL PROTECTED]>
Date:   Sun Nov 25 16:42:57 2007 +0200

    kvm: stats: avoid error on small terminals

diff --git a/kvm_stat b/kvm_stat
index 9217939..07773b0 100755
--- a/kvm_stat
+++ b/kvm_stat
@@ -40,6 +40,8 @@ def tui(screen, stats):
         row = 2
         s = stats.get()
         for key in sorted(s.keys()):
+            if row >= screen.getmaxyx()[0]:
+                break
             values = s[key]
             col = 1
             screen.addstr(row, col, key)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to