Code

collectd.conf(5): Document the per-plugin interval configuration.
[collectd.git] / src / zfs_arc.c
index 8341be0c306317aa21dac615a1c16f3b66611962..4f36f2a40c761c3c447dd7e441b10f905c806c7b 100644 (file)
@@ -31,7 +31,7 @@ extern kstat_ctl_t *kc;
 
 static void za_submit (const char* type, const char* type_instance, value_t* values, int values_len)
 {
-       value_list_t vl = VALUE_LIST_INIT;
+       value_list_t vl = VALUE_LIST_INIT (plugin_interval);
 
        vl.values = values;
        vl.values_len = values_len;
@@ -156,10 +156,11 @@ static int za_init (void) /* {{{ */
        return (0);
 } /* }}} int za_init */
 
-void module_register (void)
+void module_register (plugin_loaddata_t *data)
 {
+       PLUGIN_INIT_INTERVAL (data);
        plugin_register_init ("zfs_arc", za_init);
-       plugin_register_read ("zfs_arc", za_read);
+       plugin_register_read ("zfs_arc", za_read, plugin_interval);
 } /* void module_register */
 
 /* vmi: set sw=8 noexpandtab fdm=marker : */