From: Florian Forster Date: Sat, 1 May 2010 13:49:30 +0000 (+0200) Subject: interface plugin: Set the plugin instance rather than the type instance. X-Git-Tag: collectd-5.0.0-beta0~124 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc3640ba512862cd5745446f1f1a997dd4344454;p=collectd.git interface plugin: Set the plugin instance rather than the type instance. This has been a long standing annoyance. --- 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 */