static void aquaero_submit(const char *type, const char *type_instance,
double value) {
const char *instance = conf_device ? conf_device : "default";
- value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
/* Don't report undefined values. */
if (value == AQ5_FLOAT_UNDEF)
return;
- values[0].gauge = value;
-
- vl.values = values;
+ vl.values = &(value_t){.gauge = value};
vl.values_len = 1;
- sstrncpy(vl.host, hostname_g, sizeof(vl.host));
sstrncpy(vl.plugin, "aquaero", sizeof(vl.plugin));
sstrncpy(vl.plugin_instance, instance, sizeof(vl.plugin_instance));
sstrncpy(vl.type, type, sizeof(vl.type));
plugin_register_read("aquaero", aquaero_read);
plugin_register_shutdown("aquaero", aquaero_shutdown);
} /* void module_register */
-
-/* vim: set sw=8 sts=8 noet : */