projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added "type" to the value_list_t struct.
[collectd.git]
/
src
/
interface.c
diff --git
a/src/interface.c
b/src/interface.c
index
741ff76
..
6edecc4
100644
(file)
--- a/
src/interface.c
+++ b/
src/interface.c
@@
-195,9
+195,10
@@
static void if_submit (const char *dev, const char *type,
vl.time = time (NULL);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "interface");
vl.time = time (NULL);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "interface");
+ strncpy (vl.type, type, sizeof (vl.type));
strncpy (vl.type_instance, dev, sizeof (vl.type_instance));
strncpy (vl.type_instance, dev, sizeof (vl.type_instance));
- plugin_dispatch_values (
type,
&vl);
+ plugin_dispatch_values (&vl);
} /* void if_submit */
static int interface_read (void)
} /* void if_submit */
static int interface_read (void)