1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

Display clock skew detection only if debug for core is >= 1

This commit is contained in:
Sebastien Helleu
2009-02-18 12:37:25 +01:00
parent 4d1fdfade0
commit c76fa7e733
+7 -4
View File
@@ -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;