projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
amqp, write_graphite and write_kafka plugins: Implement the "[Graphite]PreserveSepara...
[collectd.git]
/
src
/
apache.c
diff --git
a/src/apache.c
b/src/apache.c
index
578b8de
..
7ccdb60
100644
(file)
--- a/
src/apache.c
+++ b/
src/apache.c
@@
-394,8
+394,8
@@
static void submit_value (const char *type, const char *type_instance,
vl.values = &value;
vl.values_len = 1;
vl.values = &value;
vl.values_len = 1;
- sstrncpy (vl.host, (st->host != NULL) ? st->host : hostname_g,
-
sizeof (vl.host));
+ if (st->host != NULL)
+
sstrncpy (vl.host, st->host,
sizeof (vl.host));
sstrncpy (vl.plugin, "apache", sizeof (vl.plugin));
if (st->name != NULL)
sstrncpy (vl.plugin, "apache", sizeof (vl.plugin));
if (st->name != NULL)