chiark / gitweb /
soak: Remove separate `nsteps' variable.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 6 Sep 2024 20:47:44 +0000 (21:47 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 6 Sep 2024 20:49:54 +0000 (21:49 +0100)
Now that we don't need to modify any more.

soak

diff --git a/soak b/soak
index 6b90d0f59ecd6188fb3aa9c845cbd50ec09024e4..83645db6ed01df718a99c3a58407ec378513911f 100755 (executable)
--- 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)