X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=3850accf05c663cce1a7f799781c4142b9b7bd80;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=16ce3d5f6ba33d5207b0cbf44f0e0673ea539925;hpb=ed985cb9d3d89aec3490b17e0fda3ee97908f935;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 16ce3d5f..3850accf 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -210,7 +210,7 @@ static void submit (const char *type, const char *inst, long long value) return; vl.values = values; - vl.values_len = 1; + vl.values_len = STATIC_ARRAY_SIZE (values); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "nginx", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));