X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fload.c;h=1adc62182fc47428b73b148c21e4219fa23c19f7;hb=a07f44c9cd5828a84545dcfe22544bfed2ea8812;hp=da7fe58ff835516a405bf0c5355f0e5eece3d882;hpb=ff8b75e1820552a8bbd1832544451723cbde768b;p=collectd.git diff --git a/src/load.c b/src/load.c index da7fe58f..1adc6218 100644 --- a/src/load.c +++ b/src/load.c @@ -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) {