X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fntpd.c;fp=src%2Fntpd.c;h=796d92ce14bb1e1b0dac1c31655bf1314e9b0eae;hb=9c64d2a791b62e2def521f4ee2385d6fa574e18b;hp=a19d05c106a13fc858abf09dc485ed13acd4effa;hpb=2c1c0bdf777d1a7efeefff23ed23fe84d55d5db7;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index a19d05c1..796d92ce 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -894,6 +894,12 @@ static int ntpd_read(void) { continue; } + // `0.0.0.0` hosts are caused by POOL servers + // see https://github.com/collectd/collectd/issues/2358 + if (strcmp(peername, "0.0.0.0") == 0) { + continue; + } + refclock_id = ntpd_get_refclock_id(ptr); /* Convert the `long floating point' offset value to double */