From bf3e1d8dac9fc28687a4c91160ed6d944048eb09 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 25 Apr 2010 14:46:44 +0200 Subject: [PATCH] src/collectd.c: Fix initialization of the "timeout_g" variable. The default value is "2", not "10". --- src/collectd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collectd.c b/src/collectd.c index 9a4ba08c..277d3b0d 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -151,9 +151,9 @@ static int init_global_variables (void) str = global_option_get ("Timeout"); if (str == NULL) - str = "10"; + str = "2"; timeout_g = atoi (str); - if (timeout_g <= 0) + if (timeout_g <= 1) { fprintf (stderr, "Cannot set the timeout to a correct value.\n" "Please check your settings.\n"); -- 2.11.0