X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnginx.c;h=a44e8a5778bb9de85802c599a91574745048458e;hb=65cbd6ca1da0d802ac39b460dcb8ae0af3762c13;hp=69dc49e227b161d92461a7960531ee810cc1cbec;hpb=939a113b288dfdee7df2263c682d27d7146c6013;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 69dc49e2..a44e8a57 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -141,9 +141,9 @@ static void submit (char *type, char *inst, long long value) value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - if (strcpy (type, "nginx_connections") == 0) + if (strcmp (type, "nginx_connections") == 0) values[0].gauge = value; - else if (strcpy (type, "nginx_requests") == 0) + else if (strcmp (type, "nginx_requests") == 0) values[0].counter = value; else return;