projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mqtt plugin: Add support for TLS in Subscriber blocks.
[collectd.git]
/
src
/
cpu.c
diff --git
a/src/cpu.c
b/src/cpu.c
index
a5a136e
..
307ae49
100644
(file)
--- a/
src/cpu.c
+++ b/
src/cpu.c
@@
-326,7
+326,7
@@
static void submit_value(int cpu_num, int cpu_state, const char *type,
sizeof(vl.type_instance));
if (cpu_num >= 0) {
- s
s
nprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%i", cpu_num);
+ snprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%i", cpu_num);
}
plugin_dispatch_values(&vl);
}