From 9c7d72739cffe523f0ea8c84875160c17ae6ab82 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 19 Nov 2011 14:37:26 +0100 Subject: [PATCH] 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 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2