X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnginx.c;h=7283488f5de49189c5d6c5ac9b3df0ee31be40f1;hb=1961988253c1f5b29a52343a34d291929e84fcf1;hp=16ce3d5f6ba33d5207b0cbf44f0e0673ea539925;hpb=02f8dbc0985310574ea2837cd5e3c06cccda203d;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 16ce3d5f..7283488f 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -210,10 +210,8 @@ static void submit (const char *type, const char *inst, long long value) return; vl.values = values; - vl.values_len = 1; - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + vl.values_len = STATIC_ARRAY_SIZE (values); sstrncpy (vl.plugin, "nginx", sizeof (vl.plugin)); - sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance)); sstrncpy (vl.type, type, sizeof (vl.type)); if (inst != NULL)