X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fipvs.c;h=7bd8c6985b1019e7085ca4bcd900e1e36fa9ac46;hb=c6da31fb30c2fb1d131f92efcde0b3ec9a010b2c;hp=85e65d27e57823f2fa3776237d125cf5db82e4d3;hpb=d3fc6d0831a63af2e96300f488a9f8f5fc3183fb;p=collectd.git diff --git a/src/ipvs.c b/src/ipvs.c index 85e65d27..7bd8c698 100644 --- a/src/ipvs.c +++ b/src/ipvs.c @@ -45,7 +45,9 @@ #endif /* HAVE_NETINET_IN_H */ /* this can probably only be found in the kernel sources */ -#if HAVE_NET_IP_VS_H +#if HAVE_LINUX_IP_VS_H +# include +#elif HAVE_NET_IP_VS_H # include #elif HAVE_IP_VS_H # include @@ -235,7 +237,6 @@ static void cipvs_submit_connections (char *pi, char *ti, counter_t value) vl.values = values; vl.values_len = 1; - vl.time = time (NULL); vl.interval = interval_g; sstrncpy (vl.host, hostname_g, sizeof (vl.host)); @@ -261,7 +262,6 @@ static void cipvs_submit_if (char *pi, char *t, char *ti, vl.values = values; vl.values_len = 2; - vl.time = time (NULL); vl.interval = interval_g; sstrncpy (vl.host, hostname_g, sizeof (vl.host));