X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcpu.c;h=42fcbed973748fa52d82a72c0305e177ab562069;hb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;hp=8480f11a624e3e83298066567f308d172f3ef0cf;hpb=b2ce05053cc602f0b8599e8a6c0de80063647ba4;p=collectd.git diff --git a/src/cpu.c b/src/cpu.c index 8480f11a..42fcbed9 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -183,7 +183,7 @@ static int pnumcpu; struct cpu_state_s { value_to_rate_state_t conv; gauge_t rate; - _Bool has_value; + bool has_value; }; typedef struct cpu_state_s cpu_state_t; @@ -194,12 +194,12 @@ static size_t cpu_states_num = 0; /* #cpu_states allocated */ * determine how many CPUs there were. Reset to 0 by cpu_reset(). */ static size_t global_cpu_num = 0; -static _Bool report_by_cpu = 1; -static _Bool report_by_state = 1; -static _Bool report_percent = 0; -static _Bool report_num_cpu = 0; -static _Bool report_guest = 0; -static _Bool subtract_guest = 1; +static bool report_by_cpu = 1; +static bool report_by_state = 1; +static bool report_percent = 0; +static bool report_num_cpu = 0; +static bool report_guest = 0; +static bool subtract_guest = 1; static const char *config_keys[] = {"ReportByCpu", "ReportByState", "ReportNumCpu", "ValuesPercentage",