From: Florian Forster Date: Mon, 6 Jul 2009 20:31:28 +0000 (+0200) Subject: cpu plugin: Fix a typo. X-Git-Tag: collectd-4.6.4~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1940ec77070be4a13bd7905f18a1c70d0f9ada64;p=collectd.git cpu plugin: Fix a typo. --- diff --git a/src/cpu.c b/src/cpu.c index 64ce5df9..dc44a50f 100644 --- 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));