From: Marco Costalba Date: Sat, 19 Nov 2011 13:37:26 +0000 (+0100) Subject: Fix regression with printing of debug info X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9c7d72739cffe523f0ea8c84875160c17ae6ab82 Fix regression with printing of debug info Output of debug info each second was disabled due to recent patches. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 061ba5ee..74ed69ff 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2201,8 +2201,8 @@ void do_timer_event() { static int lastInfoTime; int e = elapsed_search_time(); - // Print debug information every second - if (get_system_time() - lastInfoTime >= 1000) + // Print debug information every one second + if (!lastInfoTime || get_system_time() - lastInfoTime >= 1000) { lastInfoTime = get_system_time();