summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47f4026)
raw | patch | inline | side by side (parent: 47f4026)
author | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Thu, 16 Jan 2014 07:06:25 +0000 (08:06 +0100) | ||
committer | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Thu, 16 Jan 2014 07:06:25 +0000 (08:06 +0100) |
src/cpu.c | patch | blob | history |
diff --git a/src/cpu.c b/src/cpu.c
index 3882c6fdee197c99820e0fb6f825008d86cafb18..1d7322c48b8ea390034edda290fee7119fdf03a9 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
sstrncpy (vl.type_instance, cpu_state_names[cpu_state],
sizeof (vl.type_instance));
- if (cpu_num > 0) {
+ if (cpu_num >= 0) {
ssnprintf (vl.plugin_instance, sizeof (vl.plugin_instance),
"%i", cpu_num);
}
gauge_t percent;
if (!report_percent && report_by_cpu) {
-
for (i = 1; i < CPU_SUBMIT_ACTIVE; i++)
{
if (derives[i] == -1)