projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1455 from rubenk/configure-ac-remove-dead-code
[collectd.git]
/
src
/
dbi.c
diff --git
a/src/dbi.c
b/src/dbi.c
index
0a3d860
..
94d0762
100644
(file)
--- a/
src/dbi.c
+++ b/
src/dbi.c
@@
-399,8
+399,6
@@
static int cdbi_config_add_database (oconfig_item_t *ci) /* {{{ */
{
user_data_t ud;
char *name = NULL;
{
user_data_t ud;
char *name = NULL;
- struct timespec interval = { 0, 0 };
- CDTIME_T_TO_TIMESPEC (db->interval, &interval);
databases = temp;
databases[databases_num] = db;
databases = temp;
databases[databases_num] = db;
@@
-414,7
+412,7
@@
static int cdbi_config_add_database (oconfig_item_t *ci) /* {{{ */
plugin_register_complex_read (/* group = */ NULL,
/* name = */ name ? name : db->name,
/* callback = */ cdbi_read_database,
plugin_register_complex_read (/* group = */ NULL,
/* name = */ name ? name : db->name,
/* callback = */ cdbi_read_database,
- /* interval = */ (db->interval > 0) ?
&interval : NULL
,
+ /* interval = */ (db->interval > 0) ?
db->interval : 0
,
/* user_data = */ &ud);
free (name);
}
/* user_data = */ &ud);
free (name);
}