summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ed2fa9)
raw | patch | inline | side by side (parent: 4ed2fa9)
author | octo <octo> | |
Wed, 15 Mar 2006 11:43:33 +0000 (11:43 +0000) | ||
committer | octo <octo> | |
Wed, 15 Mar 2006 11:43:33 +0000 (11:43 +0000) |
src/collectd.c | patch | blob | history | |
src/common.c | patch | blob | history |
diff --git a/src/collectd.c b/src/collectd.c
index 7f2f6e8c4bceee0a06cd0a727caa423ed2d8e698..47745cb0c05929dd2fac3047ead5f0908dc5f31d 100644 (file)
--- a/src/collectd.c
+++ b/src/collectd.c
#if COLLECT_DEBUG
" Log-File "LOGFILE"\n"
#endif
+ " Step "COLLECTD_STEP" seconds\n"
+ " Heartbeat "COLLECTD_HEARTBEAT" seconds\n"
"\n"PACKAGE" "VERSION", http://verplant.org/collectd/\n"
"by Florian octo Forster <octo@verplant.org>\n"
"for contributions see `AUTHORS'\n");
static int start_client (void)
{
int sleepingtime;
+ int step;
+
+ step = atoi (COLLECTD_STEP);
+ if (step <= 0)
+ step = 10;
#if HAVE_LIBKSTAT
kc = NULL;
#endif
plugin_read_all ();
- sleepingtime = 10;
+ sleepingtime = step;
while (sleepingtime != 0)
{
if (loop != 0)
diff --git a/src/common.c b/src/common.c
index 50a563a3ea41b95bb64e19c6451f749ec076313c..8393d8bb67381239f4e1288b897ca05cdc013f48 100644 (file)
--- a/src/common.c
+++ b/src/common.c
argv[0] = "create";
argv[1] = filename;
argv[2] = "-s";
- argv[3] = "10";
+ argv[3] = COLLECTD_STEP;
j = 4;
for (i = 0; i < ds_num; i++)