X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=f9de8e6a87c2029c1dbc7bdf9add36338e331532;hb=bc7992ed0693313a2b1fe282a5bf23f1cc9f8e42;hp=e09da1927e71018438405176ca71f806ea33b023;hpb=a28ebbb8265605a09f0555d1eb036f50b9a784c8;p=collectd.git diff --git a/src/bind.c b/src/bind.c index e09da192..f9de8e6a 100644 --- a/src/bind.c +++ b/src/bind.c @@ -263,7 +263,7 @@ static void submit_counter(time_t ts, const char *plugin_instance, const char *t vl.values = values; vl.values_len = 1; - vl.time = (ts == 0) ? time (NULL) : ts; + vl.time = ts; sstrncpy(vl.host, hostname_g, sizeof(vl.host)); sstrncpy(vl.plugin, "bind", sizeof(vl.plugin)); if (plugin_instance) {