From: Florian Forster Date: Fri, 17 May 2013 14:26:23 +0000 (+0200) Subject: mic plugin: Change the name of the power settings … X-Git-Tag: collectd-5.4.0~42^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9a11a66bd52e0bcbd4c31576bbc4d2a6439edf6d;p=collectd.git mic plugin: Change the name of the power settings … … to reflec the names documented in the manpage. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index ca11bdb2..eb27b599 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -2304,7 +2304,7 @@ Known temperature names are: =item die -Die. hello +Die of the CPU =item devmem diff --git a/src/mic.c b/src/mic.c index 49ff0dbf..ec92c8be 100644 --- 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))