X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Ffhcount.c;h=93ad903e51b08c7672690c145687c9314b5433e8;hp=97f0438c94f024fb4f526fef7130f38bdf5a1c18;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=072244d2e10336241610a1a0448a8149e9c77e7e diff --git a/src/fhcount.c b/src/fhcount.c index 97f0438c..93ad903e 100644 --- a/src/fhcount.c +++ b/src/fhcount.c @@ -19,31 +19,31 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" static const char *config_keys[] = {"ValuesAbsolute", "ValuesPercentage"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static _Bool values_absolute = 1; -static _Bool values_percentage = 0; +static bool values_absolute = true; +static bool values_percentage; static int fhcount_config(const char *key, const char *value) { int ret = -1; if (strcasecmp(key, "ValuesAbsolute") == 0) { if (IS_TRUE(value)) { - values_absolute = 1; + values_absolute = true; } else { - values_absolute = 0; + values_absolute = false; } ret = 0; } else if (strcasecmp(key, "ValuesPercentage") == 0) { if (IS_TRUE(value)) { - values_percentage = 1; + values_percentage = true; } else { - values_percentage = 0; + values_percentage = false; } ret = 0;