X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcpu.c;h=2a6971292a5ca676b2466308eaf62a226a2130c7;hp=7478a4abbf92438381eb11d386326ccc5aa0f6d7;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=a396da422740caf336a6d594515e8d80de6f440a 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;