Code

write_graphite plugin: Use cf_util_get_service() for the "Port" option.
authorFlorian Forster <octo@collectd.org>
Mon, 6 Feb 2012 13:54:40 +0000 (14:54 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 6 Feb 2012 13:54:40 +0000 (14:54 +0100)
Change-Id: If3f0b32f86a40dbaa22837dc15f51429239af03a

src/write_graphite.c

index 6c8a977f98770f0a6772c76c153faac667e55a2e..f7ed1959e0b2dd471f892e1bed25dc97271e846e 100644 (file)
@@ -651,7 +651,7 @@ static int wg_config_carbon (oconfig_item_t *ci)
         if (strcasecmp ("Host", child->key) == 0)
             cf_util_get_string (child, &cb->node);
         else if (strcasecmp ("Port", child->key) == 0)
-            cf_util_get_string (child, &cb->service);
+            cf_util_get_service (child, &cb->service);
         else if (strcasecmp ("Prefix", child->key) == 0)
             cf_util_get_string (child, &cb->prefix);
         else if (strcasecmp ("Postfix", child->key) == 0)