From cc3640ba512862cd5745446f1f1a997dd4344454 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 1 May 2010 15:49:30 +0200 Subject: [PATCH] interface plugin: Set the plugin instance rather than the type instance. This has been a long standing annoyance. --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.11.0