projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f1393
)
Fix compilation for master
author
Michal Bebjak
<mbebjak@qualityunit.com>
Thu, 3 Sep 2015 10:21:05 +0000
(12:21 +0200)
committer
Michal Bebjak
<mbebjak@qualityunit.com>
Thu, 3 Sep 2015 10:21:05 +0000
(12:21 +0200)
src/dbi.c
patch
|
blob
|
history
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;
- struct timespec interval = { 0, 0 };
- CDTIME_T_TO_TIMESPEC (db->interval, &interval);
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,
- /* interval = */ (db->interval > 0) ?
&interval : NULL
,
+ /* interval = */ (db->interval > 0) ?
db->interval : 0
,
/* user_data = */ &ud);
free (name);
}