X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fload.c;h=858d9beacdf01536e49a8d8e825b4be97423a75f;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=83aca5eed46e5353b452fa1d63a9e264cf9680a2;hpb=72a71d40195511fae335e1384cb2eba606ad5caa;p=collectd.git diff --git a/src/load.c b/src/load.c index 83aca5ee..858d9bea 100644 --- a/src/load.c +++ b/src/load.c @@ -55,7 +55,7 @@ #include #endif /* HAVE_PERFSTAT */ -static _Bool report_relative_load = 0; +static bool report_relative_load; static const char *config_keys[] = {"ReportRelative"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); @@ -63,7 +63,7 @@ static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); static int load_config(const char *key, const char *value) { if (strcasecmp(key, "ReportRelative") == 0) #ifdef _SC_NPROCESSORS_ONLN - report_relative_load = IS_TRUE(value) ? 1 : 0; + report_relative_load = IS_TRUE(value); #else WARNING("load plugin: The \"ReportRelative\" configuration " "is not available, because I can't determine the "