- vl.values = values;
- vl.values_len = 1;
- sstrncpy (vl.host, hostname_g, sizeof (vl.host));
- sstrncpy (vl.plugin, "users", sizeof (vl.plugin));
- sstrncpy (vl.type, "users", sizeof (vl.plugin));
+ vl.values = &(value_t){.gauge = value};
+ vl.values_len = 1;
+ sstrncpy(vl.plugin, "users", sizeof(vl.plugin));
+ sstrncpy(vl.type, "users", sizeof(vl.plugin));