X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finterface.c;h=177afbaa0847b8f1db0dac2dd89bf6d6bf8bb19e;hb=8a9e3f8c8d93c70d6c75e7bfe654ae24a744b88b;hp=1ba6c8c32b73199823134d1662d89975065dc1d9;hpb=7e504c50768c77d78003e1e27afe6f9f81a85b85;p=collectd.git diff --git a/src/interface.c b/src/interface.c index 1ba6c8c3..177afbaa 100644 --- 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 */