projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ce1dd
)
interface plugin: Set the plugin instance rather than the type instance.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 1 May 2010 13:49:30 +0000
(15:49 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 1 May 2010 13:49:30 +0000
(15:49 +0200)
This has been a long standing annoyance.
src/interface.c
patch
|
blob
|
history
diff --git
a/src/interface.c
b/src/interface.c
index
1ba6c8c
..
177afba
100644
(file)
--- a/
src/interface.c
+++ b/
src/interface.c
@@
-171,8
+171,8
@@
static void if_submit (const char *dev, const char *type,
vl.values_len = 2;
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "interface", sizeof (vl.plugin));
+ sstrncpy (vl.plugin_instance, dev, sizeof (vl.plugin_instance));
sstrncpy (vl.type, type, sizeof (vl.type));
- sstrncpy (vl.type_instance, dev, sizeof (vl.type_instance));
plugin_dispatch_values (&vl);
} /* void if_submit */