X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcpu.c;h=e7f3c187dd236f00ed00251a679c216f7bdc5f75;hb=8d4c3a1924e500cfc4e055e4ed5918e46d451801;hp=7478a4abbf92438381eb11d386326ccc5aa0f6d7;hpb=a396da422740caf336a6d594515e8d80de6f440a;p=collectd.git diff --git a/src/cpu.c b/src/cpu.c index 7478a4ab..e7f3c187 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -29,8 +29,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #ifdef HAVE_MACH_KERN_RETURN_H #include @@ -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;