X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcpu.c;h=2a6971292a5ca676b2466308eaf62a226a2130c7;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=7478a4abbf92438381eb11d386326ccc5aa0f6d7;hpb=a396da422740caf336a6d594515e8d80de6f440a;p=collectd.git diff --git a/src/cpu.c b/src/cpu.c index 7478a4ab..2a697129 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -188,11 +188,11 @@ struct cpu_state_s { typedef struct cpu_state_s cpu_state_t; static cpu_state_t *cpu_states; -static size_t cpu_states_num = 0; /* #cpu_states allocated */ +static size_t cpu_states_num; /* #cpu_states allocated */ /* Highest CPU number in the current iteration. Used by the dispatch logic to * determine how many CPUs there were. Reset to 0 by cpu_reset(). */ -static size_t global_cpu_num = 0; +static size_t global_cpu_num; static bool report_by_cpu = true; static bool report_by_state = true;