From 7bf3c42a3b8446c4eb09fafeecb07ace8cfadab2 Mon Sep 17 00:00:00 2001 From: Greg Darke Date: Mon, 7 Jul 2008 16:03:58 +1000 Subject: [PATCH] Changed comparison for end of list from "!=" to "<" --- randombg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randombg.py b/randombg.py index 510d786..c20dd40 100755 --- a/randombg.py +++ b/randombg.py @@ -333,7 +333,7 @@ def do_client(options, args): sock = sock.makefile() for i, cmd in enumerate(args): sock.write("cmd %s\n" % cmd) - if i+1 != len(args): + if i < len(args) - 1: time.sleep(options.cycle_time) sock.close() -- 2.39.2