]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fixed typo in collectd.conf.pod
authorsstrehla <slawomir.strehlau@intel.com>
Tue, 21 Jul 2020 08:03:26 +0000 (10:03 +0200)
committersstrehla <slawomir.strehlau@intel.com>
Tue, 21 Jul 2020 08:03:26 +0000 (10:03 +0200)
Replaced strncasecmp with strcasecmp in smart.c

src/collectd.conf.pod
src/smart.c

index 2c8a79ef9c7e2c43e917afa671340afd18074cab..af0b14fed5afb645b9327a4a4b18558719a0b90b 100644 (file)
@@ -8669,7 +8669,7 @@ time and bad sectors. Also, all SMART attributes are collected along
 with the normalized current value, the worst value, the threshold and
 a human readable value. The plugin can also collect SMART attributes 
 for NVMe disks (present in accordance with NVMe 1.4 spec) and Additional 
-SMART Attributes form IntelĀ® NVMe disks.
+SMART Attributes from IntelĀ® NVMe disks.
 
 Using the following two options you can ignore some disks or configure the
 collection only of specific disks.
index e251d5286e74fc258efcdef07fecc77b852d1d77..d2028caaa17d9e54273b13862ada7c93aee12ef0 100644 (file)
@@ -78,17 +78,17 @@ static int smart_config(const char *key, const char *value) {
   if (ignorelist == NULL)
     return 1;
 
-  if (strncasecmp("Disk", key, 5) == 0) {
+  if (strcasecmp("Disk", key) == 0) {
     ignorelist_add(ignorelist, value);
-  } else if (strncasecmp("IgnoreSelected", key, 15) == 0) {
+  } else if (strcasecmp("IgnoreSelected", key) == 0) {
     invert_ignorelist = 1;
     if (IS_TRUE(value))
       invert_ignorelist = 0;
     ignorelist_set_invert(ignorelist, invert_ignorelist);
-  } else if (strncasecmp("IgnoreSleepMode", key, 16) == 0) {
+  } else if (strcasecmp("IgnoreSleepMode", key) == 0) {
     if (IS_TRUE(value))
       ignore_sleep_mode = 1;
-  } else if (strncasecmp("UseSerial", key, 10) == 0) {
+  } else if (strcasecmp("UseSerial", key) == 0) {
     if (IS_TRUE(value))
       use_serial = 1;
   } else {