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
/
battery.c
diff --git
a/src/battery.c
b/src/battery.c
index
e52c2c8
..
8a74b3d
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-132,7
+132,7
@@
static void battery_submit (const char *plugin_instance, const char *type, doubl
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname);
+ strcpy (vl.host, hostname
_g
);
strcpy (vl.plugin, "battery");
strcpy (vl.plugin_instance, plugin_instance);