projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce two global variables: `hostname_g' and `interval_g'.
[collectd.git]
/
src
/
traffic.c
diff --git
a/src/traffic.c
b/src/traffic.c
index
5fc55d7
..
619208c
100644
(file)
--- a/
src/traffic.c
+++ b/
src/traffic.c
@@
-232,7
+232,7
@@
static void if_submit (const char *dev, const char *type,
vl.values = values;
vl.values_len = 2;
vl.time = time (NULL);
- strcpy (vl.host, hostname);
+ strcpy (vl.host, hostname
_g
);
strcpy (vl.plugin, "interface");
strncpy (vl.type_instance, dev, sizeof (vl.type_instance));