Code

core: Changed internal API to allow for per-plugin intervals.
[collectd.git] / src / target_v5upgrade.c
index 25f4637d15b8afd75363b3256f8a78ca45aa4788..f4e87603fb262abf9aadf12352719d2e68814b0f 100644 (file)
@@ -457,10 +457,12 @@ static int v5_invoke (const data_set_t *ds, value_list_t *vl, /* {{{ */
   return (FC_TARGET_CONTINUE);
 } /* }}} int v5_invoke */
 
-void module_register (void)
+void module_register (plugin_loaddata_t *data)
 {
        target_proc_t tproc;
 
+    PLUGIN_INIT_INTERVAL (data);
+
        memset (&tproc, 0, sizeof (tproc));
        tproc.create  = v5_create;
        tproc.destroy = v5_destroy;