From: Florian Forster Date: Sun, 25 Apr 2010 12:46:44 +0000 (+0200) Subject: src/collectd.c: Fix initialization of the "timeout_g" variable. X-Git-Tag: collectd-4.10.0~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bf3e1d8dac9fc28687a4c91160ed6d944048eb09;p=collectd.git src/collectd.c: Fix initialization of the "timeout_g" variable. The default value is "2", not "10". --- 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");