From fce469f0c29ff33957ee2ed7a1a7b591203661e6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 1 Sep 2008 21:50:41 -0400 Subject: Use the modulus of the read-count to govern when game counts are reported. --- chess-test.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chess-test.el') 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) -- cgit v1.2.3