X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fload.c;h=1adc62182fc47428b73b148c21e4219fa23c19f7;hb=a07f44c9cd5828a84545dcfe22544bfed2ea8812;hp=858d9beacdf01536e49a8d8e825b4be97423a75f;hpb=0d5f3a040375be8936a85614e31c589f668cebaf;p=collectd.git diff --git a/src/load.c b/src/load.c index 858d9bea..1adc6218 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 @@ -61,7 +61,7 @@ static const char *config_keys[] = {"ReportRelative"}; 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) + if (strcasecmp(key, "ReportRelative") == 0) { #ifdef _SC_NPROCESSORS_ONLN report_relative_load = IS_TRUE(value); #else @@ -69,6 +69,8 @@ static int load_config(const char *key, const char *value) { "is not available, because I can't determine the " "number of CPUS on this system. Sorry."); #endif + return 0; + } return -1; } static void load_submit(gauge_t snum, gauge_t mnum, gauge_t lnum) {