X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsensors.c;h=8391346b4dc611b060633e8e6b1c828d20d7b67a;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=b600d4cf1fca0c52a6c24ed075e6fc3e9a0e45f6;hpb=e8999694aac7184ac4eea29564a2892f188c4171;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index b600d4cf..8391346b 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -1,6 +1,7 @@ /** * collectd - src/sensors.c * Copyright (C) 2005-2008 Florian octo Forster + * Copyright (C) 2006 Luboš Staněk * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -236,9 +237,7 @@ static int sensors_config (const char *key, const char *value) else if (strcasecmp (key, "IgnoreSelected") == 0) { ignorelist_set_invert (sensor_list, 1); - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) ignorelist_set_invert (sensor_list, 0); } else