repository: /home/avi/kvm branch: master commit 388f42cc844d326ab05cb1e8c4a35a5acf9891a8 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..5091230 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