1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

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 <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-11-19 14:37:26 +01:00
parent 3fc08f8ab6
commit 9c7d72739c

View file

@ -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();