X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpowerdns.c;h=ece9f75f5bbfa781a6f27979eaf0636982205c66;hb=633c3966f770e4d46651a2fe219a18d8a9907a9f;hp=508ea506f86cd08a1f2ff52ccae3333ad62ab8dd;hpb=650c36841827fc1ee5536edb60fc84acf83c1fce;p=collectd.git diff --git a/src/powerdns.c b/src/powerdns.c index 508ea506..ece9f75f 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -18,7 +18,7 @@ * * Author: * Luke Heberling - * Florian Forster + * Florian Forster * * DESCRIPTION * Queries a PowerDNS control socket for statistics @@ -364,9 +364,7 @@ static int powerdns_get_data_dgram (list_item_t *item, /* {{{ */ break; } - /* TODO: Remove the macro once interval_g is of type cdtime_t. */ - cdt_timeout = TIME_T_TO_CDTIME_T (interval_g); - cdt_timeout = cdt_timeout * 3 / 4; + cdt_timeout = plugin_get_interval () * 3 / 4; if (cdt_timeout < TIME_T_TO_CDTIME_T (2)) cdt_timeout = TIME_T_TO_CDTIME_T (2);