Code

collectd-threshold(5): Correct the description of the "Interesting" config option.
[collectd.git] / src / powerdns.c
index 508ea506f86cd08a1f2ff52ccae3333ad62ab8dd..a140a126a98380b5277ed352d1adee51c9e2bf49 100644 (file)
@@ -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);