]> git.sesse.net Git - stockfish/commitdiff
Fix regression with printing of debug info
authorMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2011 13:37:26 +0000 (14:37 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2011 13:37:57 +0000 (14:37 +0100)
Output of debug info each second was disabled
due to recent patches.

No functional change.

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

index 061ba5eea95eaaa5607f33f3f6e4c0ac42715bf5..74ed69ff6495b7b4a04ee84804547342192b74dd 100644 (file)
@@ -2201,8 +2201,8 @@ void do_timer_event() {
   static int lastInfoTime;
   int e = elapsed_search_time();
 
   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();
 
   {
       lastInfoTime = get_system_time();