X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffhcount.c;h=9bcb9115bf702423b24bbe9e954eefe1d24d9e5e;hb=711f5b6c86f51061c21bedcaa46214a01de0125c;hp=9e74dabd79a5582a7ce0c9c7fb5e53ac44bb2a66;hpb=f25d207699e013bb47c0083fe56b8358a98f6f4d;p=collectd.git diff --git a/src/fhcount.c b/src/fhcount.c index 9e74dabd..9bcb9115 100644 --- a/src/fhcount.c +++ b/src/fhcount.c @@ -25,7 +25,7 @@ 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_absolute = true; static bool values_percentage; static int fhcount_config(const char *key, const char *value) { @@ -33,17 +33,17 @@ static int fhcount_config(const char *key, const char *value) { 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;