summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22f1393)
raw | patch | inline | side by side (parent: 22f1393)
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 0a3d86070b55e50273bed3408905484aff47b701..94d0762d261fada2a4ebda04278f43947dc0b006 100644 (file)
--- a/src/dbi.c
+++ b/src/dbi.c
{
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;
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);
}