summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-18 12:37:25 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-18 12:37:25 +0100
commitc76fa7e733f973fddf0379907468fa7681a5e2e7 (patch)
tree8df4eb3a7d4d2d8bfdda9e2a788da1f599b77373
parent4d1fdfade0cfb51e9ff680861e3333bd2b24173a (diff)
downloadweechat-c76fa7e733f973fddf0379907468fa7681a5e2e7.zip
Display clock skew detection only if debug for core is >= 1
-rw-r--r--src/core/wee-hook.c11
1 files 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;