Code

mic plugin: Change the name of the power settings …
authorFlorian Forster <octo@collectd.org>
Fri, 17 May 2013 14:26:23 +0000 (16:26 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 17 May 2013 14:26:23 +0000 (16:26 +0200)
… to reflec the names documented in the manpage.

src/collectd.conf.pod
src/mic.c

index ca11bdb2a68179ea58115514e000be0647a9b9d2..eb27b599504dea4bc932603baa44e421af1e6b3d 100644 (file)
@@ -2304,7 +2304,7 @@ Known temperature names are:
 
 =item die
 
-Die. hello
+Die of the CPU
 
 =item devmem
 
index 49ff0dbf3d8d9d2d3d6b6c39eaa9f3ec835009d0..ec92c8bee0b0bf8881b9eeee3d71bcbcd0656681 100644 (file)
--- a/src/mic.c
+++ b/src/mic.c
@@ -53,8 +53,8 @@ static const char *config_keys[] =
        "Temperature",
        "IgnoreSelectedTemperature",
        "ShowPower",
-       "PowerSensor",
-       "IgnorePowerSelected"
+       "Power",
+       "IgnoreSelectedPower"
 };
 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
 
@@ -131,11 +131,11 @@ static int mic_config (const char *key, const char *value) {
                        invert = 0;
                ignorelist_set_invert(temp_ignore,invert);
        }
-       else if (strcasecmp("PowerSensor",key) == 0)
+       else if (strcasecmp("Power",key) == 0)
        {
                ignorelist_add(power_ignore,value);
        }
-       else if (strcasecmp("IgnorePowerSelected",key) == 0)
+       else if (strcasecmp("IgnoreSelectedPower",key) == 0)
        {
                int invert = 1;
                if (IS_TRUE(value))