]> git.sesse.net Git - stockfish/commit
Fix the polling frequency when pondering
authorMarco Costalba <mcostalba@gmail.com>
Thu, 8 Oct 2009 08:09:19 +0000 (09:09 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 8 Oct 2009 08:09:19 +0000 (09:09 +0100)
commite59ff49a55da737a70d2a50fd12d830ae9f22b90
tree1a0ed9650cde3407375e33d2ac97eeeaa3a142e0
parent225dcfeeb7d9097600b9b45af6976254d0faaa3c
Fix the polling frequency when pondering

When pondering InfiniteSearch == false but myTime == 0 so that
NodesBetweenPolls = 1000 instead of the standard.

The patch fixes the bug and is more robust because checks
directly myTime for a non-zero value, without relying on
an indirect test (InfiniteSearch in this case).

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp