diff --git a/src/network.c b/src/network.c
index 38534264e2bb5ff18cd1f472aa259e907d4aa8e6..1d6708d5f54d65ca583a4181ed3bc74c8dfb60b9 100644 (file)
--- a/src/network.c
+++ b/src/network.c
{
int status;
- value_list_t vl = VALUE_LIST_INIT;
+ value_list_t vl = VALUE_LIST_INIT (/* default interval = */ 0);
notification_t n;
#if HAVE_LIBGCRYPT
derive_t copy_values_sent;
derive_t copy_values_not_sent;
derive_t copy_receive_list_length;
- value_list_t vl = VALUE_LIST_INIT;
+ value_list_t vl = VALUE_LIST_INIT (plugin_interval);
value_t values[2];
copy_octets_rx = stats_octets_rx;
#endif
if (network_config_stats != 0)
- plugin_register_read ("network", network_stats_read);
+ plugin_register_read ("network", network_stats_read, plugin_interval);
plugin_register_shutdown ("network", network_shutdown);
return (0);
} /* int network_flush */
-void module_register (void)
+void module_register (plugin_loaddata_t *data)
{
+ PLUGIN_INIT_INTERVAL (data);
plugin_register_complex_config ("network", network_config);
plugin_register_init ("network", network_init);
plugin_register_flush ("network", network_flush,