From: Mark Wooding Date: Fri, 6 Sep 2024 20:47:44 +0000 (+0100) Subject: soak: Remove separate `nsteps' variable. X-Git-Tag: 0.99.0~102 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/xyla/commitdiff_plain/679019473ddaeda635a79a5a91742f12ab73d0ea soak: Remove separate `nsteps' variable. Now that we don't need to modify any more. --- diff --git a/soak b/soak index 6b90d0f..83645db 100755 --- a/soak +++ b/soak @@ -276,9 +276,9 @@ for lv in ST.stack: put("= %s\n" % ST.cur.tree) dump_tree() -STEP = CSTEP = 0; nsteps = OPTS.nsteps +STEP = CSTEP = 0 ch = choices() -while nsteps is None or STEP < nsteps: +while OPTS.nsteps is None or STEP < OPTS.nsteps: if OPTS.sync: SYS.stdout.write("\n;; step %d\n" % CSTEP) op = ch.choose(ST.rand)