summaryrefslogtreecommitdiff
path: root/chess-test.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-01 21:50:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-01 21:50:41 -0400
commitfce469f0c29ff33957ee2ed7a1a7b591203661e6 (patch)
treed5ef748dfafca4e5944efede2b2d762d2fc23bd2 /chess-test.el
parent9823c6aafd43f33a19018d83286c262e763e383d (diff)
Use the modulus of the read-count to govern when game counts are reported.
Diffstat (limited to 'chess-test.el')
-rw-r--r--chess-test.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-test.el b/chess-test.el
index 3c52324..8df18a9 100644
--- a/chess-test.el
+++ b/chess-test.el
@@ -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)