X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fchrony.c;h=77ba8cc460564d42ed6b8794080a36234e3c0199;hb=e1fda36ff7e4b5f508b630b614b182e298d91fb7;hp=353ede792f0627aae2e512439151349f050aeccd;hpb=e1bfa71aca1f37c2f293dc9adb44065c6e7a9ad9;p=collectd.git diff --git a/src/chrony.c b/src/chrony.c index 353ede79..77ba8cc4 100644 --- a/src/chrony.c +++ b/src/chrony.c @@ -683,9 +683,6 @@ chrony_push_data(const char *p_type, const char *p_type_inst, double p_value) vl.values_len = 1; /* XXX: Shall g_chrony_host/g_chrony_port be reflected in the plugin's output? */ - /* hostname_g is set in daemon/collectd.c (from config, via gethostname or by resolving localhost) */ - /* defined as: char hostname_g[DATA_MAX_NAME_LEN]; (never NULL) */ - sstrncpy(vl.host, hostname_g, sizeof(vl.host)); sstrncpy(vl.plugin, PLUGIN_NAME_SHORT, sizeof(vl.plugin)); if (g_chrony_plugin_instance != NULL) {