X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpowerdns.c;h=a1b23555bec080592a261f91e1d6e02ae769bd6a;hb=a04ffbda508739433df0975328100e33e7986c87;hp=508ea506f86cd08a1f2ff52ccae3333ad62ab8dd;hpb=edd0e2639a241167e213ec301bfc71c7d291ee61;p=collectd.git diff --git a/src/powerdns.c b/src/powerdns.c index 508ea506..a1b23555 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -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 = interval_g * 3 / 4; if (cdt_timeout < TIME_T_TO_CDTIME_T (2)) cdt_timeout = TIME_T_TO_CDTIME_T (2);