From 2a0bbb9faa7884b486579e095b7ebc25205f1347 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 13 Jul 2013 07:43:50 +0200 Subject: [PATCH] Fix printing of PV info: take 2 Now last PV line is printed twice, fix that. No functional change. --- src/search.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 7fcf4bcb..22dc401c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -367,8 +367,10 @@ namespace { if (Signals.stop) return; - // Give some update (without cluttering the UI) before to research - if (Time::now() - SearchTime > 3000) + // When failing high/low give some update (without cluttering + // the UI) before to research. + if ( (bestValue <= alpha || bestValue >= beta) + && Time::now() - SearchTime > 3000) sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl; // In case of failing low/high increase aspiration window and -- 2.39.2