diff --git a/src/powerdns.c b/src/powerdns.c
index 508ea506f86cd08a1f2ff52ccae3333ad62ab8dd..ece9f75f5bbfa781a6f27979eaf0636982205c66 100644 (file)
--- a/src/powerdns.c
+++ b/src/powerdns.c
*
* Author:
* Luke Heberling <lukeh at c-ware.com>
- * Florian Forster <octo at verplant.org>
+ * Florian Forster <octo at collectd.org>
*
* DESCRIPTION
* Queries a PowerDNS control socket for statistics
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);