From 9a11a66bd52e0bcbd4c31576bbc4d2a6439edf6d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 May 2013 16:26:23 +0200 Subject: [PATCH] =?utf8?q?mic=20plugin:=20Change=20the=20name=20of=20the?= =?utf8?q?=20power=20settings=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … to reflec the names documented in the manpage. --- src/collectd.conf.pod | 2 +- src/mic.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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)) -- 2.11.0