Code

interface plugin: Set the plugin instance rather than the type instance.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 1 May 2010 13:49:30 +0000 (15:49 +0200)
committerFlorian 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

index 1ba6c8c32b73199823134d1662d89975065dc1d9..177afbaa0847b8f1db0dac2dd89bf6d6bf8bb19e 100644 (file)
@@ -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 */