]> code.delx.au - gnu-emacs-elpa/commitdiff
Use the modulus of the read-count to govern when game counts are reported.
authorJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 01:50:41 +0000 (21:50 -0400)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 01:50:41 +0000 (21:50 -0400)
chess-test.el

index 3c52324f60e873053228a76420ca9ac65afc717b..8df18a92334b11cf3876ae12c2aa251b05d643f2 100644 (file)
@@ -48,7 +48,7 @@
                      (setq read-count (1+ read-count)
                            ply-count
                            (+ ply-count (length (chess-game-plies game))))
-                     (if (and (> index 0) (= 0 (mod index 1000)))
+                     (if (and (> read-count 0) (= 0 (mod read-count 1000)))
                          (message "Read %d games (now at game %d): %d total plies (%.2f ply/sec)"
                                   read-count index ply-count
                                   (/ (float ply-count)