Code

cpu plugin: Fix a typo.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 6 Jul 2009 20:31:28 +0000 (22:31 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 6 Jul 2009 20:31:28 +0000 (22:31 +0200)
src/cpu.c

index 64ce5df9e27b8158942c70203ceb763a54f1bead..dc44a50ff5f71b732ae69a4be9ba64401b09d7e7 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -220,7 +220,7 @@ static void submit (int cpu_num, const char *type_instance, counter_t value)
        vl.values_len = 1;
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "cpu", sizeof (vl.plugin));
-       ssnprintf (vl.plugin_instance, sizeof (vl.type_instance),
+       ssnprintf (vl.plugin_instance, sizeof (vl.plugin_instance),
                        "%i", cpu_num);
        sstrncpy (vl.type, "cpu", sizeof (vl.type));
        sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));