From: Florian Forster Date: Tue, 22 Jan 2013 18:07:13 +0000 (+0100) Subject: write_riemann plugin: Fix two bugs in the example configuration. X-Git-Tag: collectd-5.3.0~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26a6d89059bb9e303bc8b1bb04444ad167baed2b;p=collectd.git write_riemann plugin: Fix two bugs in the example configuration. Remove a trailing ">" from the example config and use the correct config item to configure the "StoreRates" option. --- diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 9c02ce60..12891fb6 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1063,7 +1063,7 @@ # # -# Host "localhost"> +# Host "localhost" # Port 5555 # StoreRates true # diff --git a/src/write_riemann.c b/src/write_riemann.c index cd0132d2..33fb0a55 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -448,7 +448,7 @@ riemann_connect(struct riemann_host *host) memset(&hints, 0, sizeof(hints)); memset(&service, 0, sizeof(service)); - hints.ai_family = PF_UNSPEC; + hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; #ifdef AI_ADDRCONFIG hints.ai_flags |= AI_ADDRCONFIG; @@ -579,7 +579,7 @@ riemann_config_node(oconfig_item_t *ci) break; } } else if (strcasecmp ("StoreRates", child->key) == 0) { - status = cf_util_get_boolean (ci, &host->store_rates); + status = cf_util_get_boolean (child, &host->store_rates); if (status != 0) break; } else {