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
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index
f03a5a9
..
8e04044
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-133,7
+133,7
@@
static void swap_submit (const char *type_instance, double value)
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname);
+ strcpy (vl.host, hostname
_g
);
strcpy (vl.plugin, "swap");
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));