X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fload.c;h=da7fe58ff835516a405bf0c5355f0e5eece3d882;hb=c4439c9cb3e2348ad7013644731de27a55eca478;hp=83aca5eed46e5353b452fa1d63a9e264cf9680a2;hpb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364;p=collectd.git diff --git a/src/load.c b/src/load.c index 83aca5ee..da7fe58f 100644 --- a/src/load.c +++ b/src/load.c @@ -28,8 +28,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include @@ -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 "