From c76fa7e733f973fddf0379907468fa7681a5e2e7 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 18 Feb 2009 12:37:25 +0100 Subject: [PATCH] Display clock skew detection only if debug for core is >= 1 --- src/core/wee-hook.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index cf07dd670..9422850ed 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -679,10 +679,13 @@ hook_timer_check_system_clock () diff_time = now - hook_last_system_time; if ((diff_time <= -10) || (diff_time >= 10)) { - gui_chat_printf (NULL, - _("System clock skew detected (%+ld seconds), " - "reinitializing all timers"), - diff_time); + if (weechat_debug_core >= 1) + { + gui_chat_printf (NULL, + _("System clock skew detected (%+ld seconds), " + "reinitializing all timers"), + diff_time); + } /* reinitialize all timers */ for (ptr_hook = weechat_hooks[HOOK_TYPE_TIMER]; ptr_hook;