projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1c0bd
)
Skip `0.0.0.0` hosts in ntpd plugin
author
Ivan Kurnosov
<zerkms@zerkms.com>
Sat, 22 Jul 2017 04:38:01 +0000
(16:38 +1200)
committer
Ivan Kurnosov
<zerkms@zerkms.com>
Sat, 22 Jul 2017 04:38:01 +0000
(16:38 +1200)
src/ntpd.c
patch
|
blob
|
history
diff --git
a/src/ntpd.c
b/src/ntpd.c
index
a19d05c
..
796d92c
100644
(file)
--- 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 */