X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmic.c;h=570da51bcfd56c20296effdd64e570e3ff9eb6b9;hb=db35efb33e81d0a013e09a8a6ffa362ad5962f7c;hp=49ff0dbf3d8d9d2d3d6b6c39eaa9f3ec835009d0;hpb=fc25f490984524798f044260f40793d1e002a3a5;p=collectd.git diff --git a/src/mic.c b/src/mic.c index 49ff0dbf..570da51b 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)) @@ -398,7 +398,9 @@ static int mic_read (void) static int mic_shutdown (void) { if (mic_handle) - MicCloseAPI(&mic_handle); + MicCloseAPI(&mic_handle); + mic_handle = NULL; + return (0); }